fake-bpy-module 20240516__py3-none-any.whl → 20240517__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- _bpy_internal/freedesktop/__init__.pyi +2 -2
- addon_utils/__init__.pyi +43 -12
- animsys_refactor/__init__.pyi +4 -4
- aud/__init__.pyi +7 -7
- bgl/__init__.pyi +121 -183
- bl_app_override/__init__.pyi +5 -5
- bl_app_override/helpers/__init__.pyi +3 -1
- bl_app_template_utils/__init__.pyi +5 -5
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +48 -10
- bl_console_utils/autocomplete/complete_import/__init__.pyi +27 -6
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +40 -8
- bl_console_utils/autocomplete/intellisense/__init__.pyi +31 -4
- bl_i18n_utils/bl_extract_messages/__init__.pyi +5 -5
- bl_i18n_utils/settings/__init__.pyi +4 -2
- bl_i18n_utils/utils/__init__.pyi +86 -58
- bl_i18n_utils/utils_rtl/__init__.pyi +8 -2
- bl_keymap_utils/io/__init__.pyi +4 -4
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +2 -2
- bl_keymap_utils/platform_helpers/__init__.pyi +2 -2
- bl_operators/add_mesh_torus/__init__.pyi +126 -41
- bl_operators/anim/__init__.pyi +1001 -328
- bl_operators/assets/__init__.pyi +376 -123
- bl_operators/bmesh/find_adjacent/__init__.pyi +3 -3
- bl_operators/clip/__init__.pyi +1250 -409
- bl_operators/console/__init__.pyi +626 -205
- bl_operators/constraint/__init__.pyi +502 -165
- bl_operators/file/__init__.pyi +376 -123
- bl_operators/freestyle/__init__.pyi +501 -164
- bl_operators/geometry_nodes/__init__.pyi +501 -164
- bl_operators/image/__init__.pyi +621 -200
- bl_operators/mesh/__init__.pyi +376 -123
- bl_operators/node/__init__.pyi +1243 -402
- bl_operators/object/__init__.pyi +1876 -615
- bl_operators/object_align/__init__.pyi +126 -41
- bl_operators/object_quick_effects/__init__.pyi +502 -165
- bl_operators/object_randomize_transform/__init__.pyi +126 -41
- bl_operators/presets/__init__.pyi +3069 -1027
- bl_operators/rigidbody/__init__.pyi +376 -123
- bl_operators/screen_play_rendered_anim/__init__.pyi +126 -41
- bl_operators/sequencer/__init__.pyi +1009 -331
- bl_operators/spreadsheet/__init__.pyi +126 -41
- bl_operators/userpref/__init__.pyi +3263 -1078
- bl_operators/uvcalc_follow_active/__init__.pyi +126 -41
- bl_operators/uvcalc_lightmap/__init__.pyi +137 -47
- bl_operators/uvcalc_transform/__init__.pyi +289 -90
- bl_operators/vertexpaint_dirt/__init__.pyi +126 -41
- bl_operators/view3d/__init__.pyi +868 -279
- bl_operators/wm/__init__.pyi +5777 -1934
- bl_operators/world/__init__.pyi +126 -41
- bl_previews_utils/bl_previews_render/__init__.pyi +1 -1
- bl_rna_utils/data_path/__init__.pyi +8 -3
- bl_ui/__init__.pyi +338 -131
- bl_ui/anim/__init__.pyi +164 -64
- bl_ui/asset_shelf/__init__.pyi +129 -42
- bl_ui/generic_ui_list/__init__.pyi +412 -135
- bl_ui/node_add_menu/__init__.pyi +168 -68
- bl_ui/node_add_menu_compositor/__init__.pyi +2921 -1138
- bl_ui/node_add_menu_geometry/__init__.pyi +7785 -3032
- bl_ui/node_add_menu_shader/__init__.pyi +1621 -630
- bl_ui/node_add_menu_texture/__init__.pyi +1459 -567
- bl_ui/properties_animviz/__init__.pyi +2 -2
- bl_ui/properties_collection/__init__.pyi +806 -274
- bl_ui/properties_constraint/__init__.pyi +10253 -3458
- bl_ui/properties_data_armature/__init__.pyi +1615 -552
- bl_ui/properties_data_bone/__init__.pyi +1288 -425
- bl_ui/properties_data_camera/__init__.pyi +1854 -631
- bl_ui/properties_data_curve/__init__.pyi +1929 -636
- bl_ui/properties_data_curves/__init__.pyi +806 -274
- bl_ui/properties_data_empty/__init__.pyi +257 -84
- bl_ui/properties_data_gpencil/__init__.pyi +2380 -803
- bl_ui/properties_data_grease_pencil/__init__.pyi +1902 -656
- bl_ui/properties_data_lattice/__init__.pyi +388 -127
- bl_ui/properties_data_light/__init__.pyi +1541 -506
- bl_ui/properties_data_lightprobe/__init__.pyi +1667 -548
- bl_ui/properties_data_mesh/__init__.pyi +2704 -929
- bl_ui/properties_data_metaball/__init__.pyi +644 -211
- bl_ui/properties_data_modifier/__init__.pyi +1353 -502
- bl_ui/properties_data_pointcloud/__init__.pyi +679 -233
- bl_ui/properties_data_shaderfx/__init__.pyi +129 -42
- bl_ui/properties_data_speaker/__init__.pyi +644 -211
- bl_ui/properties_data_volume/__init__.pyi +1030 -339
- bl_ui/properties_freestyle/__init__.pyi +3113 -1035
- bl_ui/properties_grease_pencil_common/__init__.pyi +2464 -933
- bl_ui/properties_mask_common/__init__.pyi +1101 -420
- bl_ui/properties_material/__init__.pyi +2091 -699
- bl_ui/properties_material_gpencil/__init__.pyi +1350 -466
- bl_ui/properties_object/__init__.pyi +1838 -618
- bl_ui/properties_output/__init__.pyi +2414 -831
- bl_ui/properties_paint_common/__init__.pyi +412 -289
- bl_ui/properties_particle/__init__.pyi +6737 -2241
- bl_ui/properties_physics_cloth/__init__.pyi +1825 -612
- bl_ui/properties_physics_common/__init__.pyi +129 -42
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +2821 -928
- bl_ui/properties_physics_field/__init__.pyi +1283 -422
- bl_ui/properties_physics_fluid/__init__.pyi +3620 -1203
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +129 -42
- bl_ui/properties_physics_rigidbody/__init__.pyi +1027 -338
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +1667 -548
- bl_ui/properties_physics_softbody/__init__.pyi +1924 -633
- bl_ui/properties_render/__init__.pyi +6830 -2263
- bl_ui/properties_scene/__init__.pyi +1929 -636
- bl_ui/properties_texture/__init__.pyi +3370 -1118
- bl_ui/properties_view_layer/__init__.pyi +2346 -782
- bl_ui/properties_workspace/__init__.pyi +516 -169
- bl_ui/properties_world/__init__.pyi +1284 -421
- bl_ui/space_clip/__init__.pyi +10134 -3639
- bl_ui/space_console/__init__.pyi +939 -357
- bl_ui/space_dopesheet/__init__.pyi +4327 -1562
- bl_ui/space_filebrowser/__init__.pyi +4164 -1499
- bl_ui/space_graph/__init__.pyi +3108 -1179
- bl_ui/space_image/__init__.pyi +9766 -3596
- bl_ui/space_info/__init__.pyi +939 -357
- bl_ui/space_nla/__init__.pyi +2620 -988
- bl_ui/space_node/__init__.pyi +3994 -1434
- bl_ui/space_outliner/__init__.pyi +2203 -842
- bl_ui/space_properties/__init__.pyi +386 -127
- bl_ui/space_sequencer/__init__.pyi +10773 -3878
- bl_ui/space_spreadsheet/__init__.pyi +130 -43
- bl_ui/space_statusbar/__init__.pyi +129 -42
- bl_ui/space_text/__init__.pyi +2458 -925
- bl_ui/space_time/__init__.pyi +1033 -378
- bl_ui/space_toolsystem_common/__init__.pyi +20 -16
- bl_ui/space_toolsystem_toolbar/__init__.pyi +37 -21
- bl_ui/space_topbar/__init__.pyi +3980 -1496
- bl_ui/space_userpref/__init__.pyi +11373 -3797
- bl_ui/space_view3d/__init__.pyi +40865 -15356
- bl_ui/space_view3d_toolbar/__init__.pyi +12520 -4647
- bl_ui/temp_anim_layers/__init__.pyi +129 -42
- bl_ui/utils/__init__.pyi +28 -20
- bl_ui_utils/bug_report_url/__init__.pyi +1 -1
- bl_ui_utils/layout/__init__.pyi +1 -1
- blend_render_info/__init__.pyi +1 -1
- blf/__init__.pyi +4 -4
- bmesh/geometry/__init__.pyi +2 -3
- bmesh/ops/__init__.pyi +372 -419
- bmesh/types/__init__.pyi +38 -38
- bmesh/utils/__init__.pyi +10 -13
- bpy/app/__init__.pyi +4 -4
- bpy/app/handlers/__init__.pyi +36 -36
- bpy/app/icons/__init__.pyi +8 -8
- bpy/app/timers/__init__.pyi +10 -10
- bpy/app/translations/__init__.pyi +20 -22
- bpy/msgbus/__init__.pyi +2 -4
- bpy/ops/action/__init__.pyi +316 -394
- bpy/ops/anim/__init__.pyi +442 -548
- bpy/ops/armature/__init__.pyi +374 -470
- bpy/ops/asset/__init__.pyi +152 -184
- bpy/ops/bl_pkg/__init__.pyi +221 -272
- bpy/ops/boid/__init__.pyi +50 -66
- bpy/ops/brush/__init__.pyi +72 -90
- bpy/ops/buttons/__init__.pyi +132 -144
- bpy/ops/cachefile/__init__.pyi +128 -138
- bpy/ops/camera/__init__.pyi +26 -30
- bpy/ops/clip/__init__.pyi +777 -964
- bpy/ops/cloth/__init__.pyi +12 -14
- bpy/ops/collection/__init__.pyi +68 -86
- bpy/ops/console/__init__.pyi +158 -200
- bpy/ops/constraint/__init__.pyi +178 -214
- bpy/ops/curve/__init__.pyi +473 -576
- bpy/ops/curves/__init__.pyi +247 -302
- bpy/ops/cycles/__init__.pyi +28 -34
- bpy/ops/dpaint/__init__.pyi +34 -44
- bpy/ops/ed/__init__.pyi +126 -150
- bpy/ops/export_anim/__init__.pyi +22 -24
- bpy/ops/export_scene/__init__.pyi +302 -336
- bpy/ops/file/__init__.pyi +352 -432
- bpy/ops/fluid/__init__.pyi +90 -118
- bpy/ops/font/__init__.pyi +258 -304
- bpy/ops/geometry/__init__.pyi +100 -120
- bpy/ops/gizmogroup/__init__.pyi +22 -26
- bpy/ops/gpencil/__init__.pyi +1469 -1778
- bpy/ops/graph/__init__.pyi +644 -776
- bpy/ops/grease_pencil/__init__.pyi +597 -748
- bpy/ops/image/__init__.pyi +648 -744
- bpy/ops/import_anim/__init__.pyi +30 -32
- bpy/ops/import_curve/__init__.pyi +10 -12
- bpy/ops/import_scene/__init__.pyi +88 -96
- bpy/ops/info/__init__.pyi +60 -74
- bpy/ops/lattice/__init__.pyi +64 -80
- bpy/ops/marker/__init__.pyi +108 -130
- bpy/ops/mask/__init__.pyi +322 -402
- bpy/ops/material/__init__.pyi +18 -24
- bpy/ops/mball/__init__.pyi +70 -86
- bpy/ops/mesh/__init__.pyi +1986 -2322
- bpy/ops/nla/__init__.pyi +333 -411
- bpy/ops/node/__init__.pyi +886 -1100
- bpy/ops/object/__init__.pyi +2585 -3078
- bpy/ops/outliner/__init__.pyi +498 -636
- bpy/ops/paint/__init__.pyi +565 -680
- bpy/ops/paintcurve/__init__.pyi +64 -80
- bpy/ops/palette/__init__.pyi +50 -64
- bpy/ops/particle/__init__.pyi +267 -340
- bpy/ops/pose/__init__.pyi +336 -414
- bpy/ops/poselib/__init__.pyi +72 -90
- bpy/ops/preferences/__init__.pyi +386 -463
- bpy/ops/ptcache/__init__.pyi +46 -60
- bpy/ops/render/__init__.pyi +130 -154
- bpy/ops/rigidbody/__init__.pyi +102 -128
- bpy/ops/scene/__init__.pyi +280 -358
- bpy/ops/screen/__init__.pyi +382 -460
- bpy/ops/script/__init__.pyi +24 -30
- bpy/ops/sculpt/__init__.pyi +458 -532
- bpy/ops/sculpt_curves/__init__.pyi +41 -50
- bpy/ops/sequencer/__init__.pyi +1066 -1244
- bpy/ops/sound/__init__.pyi +216 -230
- bpy/ops/spreadsheet/__init__.pyi +30 -38
- bpy/ops/surface/__init__.pyi +108 -120
- bpy/ops/text/__init__.pyi +390 -476
- bpy/ops/text_editor/__init__.pyi +12 -14
- bpy/ops/texture/__init__.pyi +26 -34
- bpy/ops/transform/__init__.pyi +792 -878
- bpy/ops/ui/__init__.pyi +228 -294
- bpy/ops/uilist/__init__.pyi +32 -38
- bpy/ops/uv/__init__.pyi +602 -704
- bpy/ops/view2d/__init__.pyi +156 -184
- bpy/ops/view3d/__init__.pyi +582 -718
- bpy/ops/wm/__init__.pyi +2680 -2928
- bpy/ops/workspace/__init__.pyi +46 -60
- bpy/ops/world/__init__.pyi +12 -16
- bpy/path/__init__.pyi +179 -75
- bpy/props/__init__.pyi +261 -263
- bpy/types/__init__.pyi +17056 -21951
- bpy/utils/__init__.pyi +242 -118
- bpy/utils/previews/__init__.pyi +58 -28
- bpy/utils/units/__init__.pyi +20 -20
- bpy_extras/anim_utils/__init__.pyi +68 -28
- bpy_extras/bmesh_utils/__init__.pyi +8 -2
- bpy_extras/extensions/junction_module/__init__.pyi +5 -2
- bpy_extras/id_map_utils/__init__.pyi +3 -3
- bpy_extras/image_utils/__init__.pyi +44 -11
- bpy_extras/io_utils/__init__.pyi +113 -18
- bpy_extras/keyconfig_utils/__init__.pyi +2 -2
- bpy_extras/mesh_utils/__init__.pyi +71 -19
- bpy_extras/node_shader_utils/__init__.pyi +9 -4
- bpy_extras/node_utils/__init__.pyi +9 -2
- bpy_extras/object_utils/__init__.pyi +71 -12
- bpy_extras/view3d_utils/__init__.pyi +80 -10
- bpy_extras/wm_utils/progress_report/__init__.pyi +13 -10
- bpy_types/__init__.pyi +4197 -1333
- console_python/__init__.pyi +6 -1
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240517.dist-info}/METADATA +1 -1
- fake_bpy_module-20240517.dist-info/RECORD +353 -0
- freestyle/chainingiterators/__init__.pyi +4 -4
- freestyle/shaders/__init__.pyi +2 -2
- freestyle/types/__init__.pyi +84 -96
- freestyle/utils/ContextFunctions/__init__.pyi +2 -2
- freestyle/utils/__init__.pyi +3 -3
- gpu/matrix/__init__.pyi +6 -8
- gpu/state/__init__.pyi +2 -2
- gpu/types/__init__.pyi +12 -12
- gpu_extras/presets/__init__.pyi +2 -5
- graphviz_export/__init__.pyi +4 -2
- idprop/types/__init__.pyi +2 -2
- imbuf/__init__.pyi +4 -4
- keyingsets_builtins/__init__.pyi +2688 -839
- mathutils/__init__.pyi +194 -238
- mathutils/bvhtree/__init__.pyi +4 -4
- mathutils/geometry/__init__.pyi +153 -155
- mathutils/kdtree/__init__.pyi +8 -12
- mathutils/noise/__init__.pyi +26 -26
- nodeitems_utils/__init__.pyi +1 -1
- rna_info/__init__.pyi +17 -15
- rna_keymap_ui/__init__.pyi +1 -1
- rna_prop_ui/__init__.pyi +16 -14
- rna_xml/__init__.pyi +12 -12
- _bpy_internal/freedesktop/py.typed +0 -0
- bl_app_override/helpers/py.typed +0 -0
- bl_console_utils/autocomplete/complete_calltip/py.typed +0 -0
- bl_console_utils/autocomplete/complete_import/py.typed +0 -0
- bl_console_utils/autocomplete/complete_namespace/py.typed +0 -0
- bl_console_utils/autocomplete/intellisense/py.typed +0 -0
- bl_console_utils/autocomplete/py.typed +0 -0
- bl_i18n_utils/bl_extract_messages/py.typed +0 -0
- bl_i18n_utils/merge_po/py.typed +0 -0
- bl_i18n_utils/settings/py.typed +0 -0
- bl_i18n_utils/utils/py.typed +0 -0
- bl_i18n_utils/utils_cli/py.typed +0 -0
- bl_i18n_utils/utils_languages_menu/py.typed +0 -0
- bl_i18n_utils/utils_rtl/py.typed +0 -0
- bl_keymap_utils/io/py.typed +0 -0
- bl_keymap_utils/keymap_from_toolbar/py.typed +0 -0
- bl_keymap_utils/keymap_hierarchy/py.typed +0 -0
- bl_keymap_utils/platform_helpers/py.typed +0 -0
- bl_keymap_utils/versioning/py.typed +0 -0
- bl_operators/add_mesh_torus/py.typed +0 -0
- bl_operators/anim/py.typed +0 -0
- bl_operators/assets/py.typed +0 -0
- bl_operators/bmesh/find_adjacent/py.typed +0 -0
- bl_operators/bmesh/py.typed +0 -0
- bl_operators/clip/py.typed +0 -0
- bl_operators/console/py.typed +0 -0
- bl_operators/constraint/py.typed +0 -0
- bl_operators/file/py.typed +0 -0
- bl_operators/freestyle/py.typed +0 -0
- bl_operators/geometry_nodes/py.typed +0 -0
- bl_operators/image/py.typed +0 -0
- bl_operators/mesh/py.typed +0 -0
- bl_operators/node/py.typed +0 -0
- bl_operators/object/py.typed +0 -0
- bl_operators/object_align/py.typed +0 -0
- bl_operators/object_quick_effects/py.typed +0 -0
- bl_operators/object_randomize_transform/py.typed +0 -0
- bl_operators/presets/py.typed +0 -0
- bl_operators/rigidbody/py.typed +0 -0
- bl_operators/screen_play_rendered_anim/py.typed +0 -0
- bl_operators/sequencer/py.typed +0 -0
- bl_operators/spreadsheet/py.typed +0 -0
- bl_operators/userpref/py.typed +0 -0
- bl_operators/uvcalc_follow_active/py.typed +0 -0
- bl_operators/uvcalc_lightmap/py.typed +0 -0
- bl_operators/uvcalc_transform/py.typed +0 -0
- bl_operators/vertexpaint_dirt/py.typed +0 -0
- bl_operators/view3d/py.typed +0 -0
- bl_operators/wm/py.typed +0 -0
- bl_operators/world/py.typed +0 -0
- bl_previews_utils/bl_previews_render/py.typed +0 -0
- bl_rna_utils/data_path/py.typed +0 -0
- bl_text_utils/external_editor/py.typed +0 -0
- bl_ui/anim/py.typed +0 -0
- bl_ui/asset_shelf/py.typed +0 -0
- bl_ui/generic_ui_list/py.typed +0 -0
- bl_ui/node_add_menu/py.typed +0 -0
- bl_ui/node_add_menu_compositor/py.typed +0 -0
- bl_ui/node_add_menu_geometry/py.typed +0 -0
- bl_ui/node_add_menu_shader/py.typed +0 -0
- bl_ui/node_add_menu_texture/py.typed +0 -0
- bl_ui/properties_animviz/py.typed +0 -0
- bl_ui/properties_collection/py.typed +0 -0
- bl_ui/properties_constraint/py.typed +0 -0
- bl_ui/properties_data_armature/py.typed +0 -0
- bl_ui/properties_data_bone/py.typed +0 -0
- bl_ui/properties_data_camera/py.typed +0 -0
- bl_ui/properties_data_curve/py.typed +0 -0
- bl_ui/properties_data_curves/py.typed +0 -0
- bl_ui/properties_data_empty/py.typed +0 -0
- bl_ui/properties_data_gpencil/py.typed +0 -0
- bl_ui/properties_data_grease_pencil/py.typed +0 -0
- bl_ui/properties_data_lattice/py.typed +0 -0
- bl_ui/properties_data_light/py.typed +0 -0
- bl_ui/properties_data_lightprobe/py.typed +0 -0
- bl_ui/properties_data_mesh/py.typed +0 -0
- bl_ui/properties_data_metaball/py.typed +0 -0
- bl_ui/properties_data_modifier/py.typed +0 -0
- bl_ui/properties_data_pointcloud/py.typed +0 -0
- bl_ui/properties_data_shaderfx/py.typed +0 -0
- bl_ui/properties_data_speaker/py.typed +0 -0
- bl_ui/properties_data_volume/py.typed +0 -0
- bl_ui/properties_freestyle/py.typed +0 -0
- bl_ui/properties_grease_pencil_common/py.typed +0 -0
- bl_ui/properties_mask_common/py.typed +0 -0
- bl_ui/properties_material/py.typed +0 -0
- bl_ui/properties_material_gpencil/py.typed +0 -0
- bl_ui/properties_object/py.typed +0 -0
- bl_ui/properties_output/py.typed +0 -0
- bl_ui/properties_paint_common/py.typed +0 -0
- bl_ui/properties_particle/py.typed +0 -0
- bl_ui/properties_physics_cloth/py.typed +0 -0
- bl_ui/properties_physics_common/py.typed +0 -0
- bl_ui/properties_physics_dynamicpaint/py.typed +0 -0
- bl_ui/properties_physics_field/py.typed +0 -0
- bl_ui/properties_physics_fluid/py.typed +0 -0
- bl_ui/properties_physics_geometry_nodes/py.typed +0 -0
- bl_ui/properties_physics_rigidbody/py.typed +0 -0
- bl_ui/properties_physics_rigidbody_constraint/py.typed +0 -0
- bl_ui/properties_physics_softbody/py.typed +0 -0
- bl_ui/properties_render/py.typed +0 -0
- bl_ui/properties_scene/py.typed +0 -0
- bl_ui/properties_texture/py.typed +0 -0
- bl_ui/properties_view_layer/py.typed +0 -0
- bl_ui/properties_workspace/py.typed +0 -0
- bl_ui/properties_world/py.typed +0 -0
- bl_ui/space_clip/py.typed +0 -0
- bl_ui/space_console/py.typed +0 -0
- bl_ui/space_dopesheet/py.typed +0 -0
- bl_ui/space_filebrowser/py.typed +0 -0
- bl_ui/space_graph/py.typed +0 -0
- bl_ui/space_image/py.typed +0 -0
- bl_ui/space_info/py.typed +0 -0
- bl_ui/space_nla/py.typed +0 -0
- bl_ui/space_node/py.typed +0 -0
- bl_ui/space_outliner/py.typed +0 -0
- bl_ui/space_properties/py.typed +0 -0
- bl_ui/space_sequencer/py.typed +0 -0
- bl_ui/space_spreadsheet/py.typed +0 -0
- bl_ui/space_statusbar/py.typed +0 -0
- bl_ui/space_text/py.typed +0 -0
- bl_ui/space_time/py.typed +0 -0
- bl_ui/space_toolsystem_common/py.typed +0 -0
- bl_ui/space_toolsystem_toolbar/py.typed +0 -0
- bl_ui/space_topbar/py.typed +0 -0
- bl_ui/space_userpref/py.typed +0 -0
- bl_ui/space_view3d/py.typed +0 -0
- bl_ui/space_view3d_toolbar/py.typed +0 -0
- bl_ui/temp_anim_layers/py.typed +0 -0
- bl_ui/utils/py.typed +0 -0
- bl_ui_utils/bug_report_url/py.typed +0 -0
- bl_ui_utils/layout/py.typed +0 -0
- bmesh/geometry/py.typed +0 -0
- bmesh/ops/py.typed +0 -0
- bmesh/types/py.typed +0 -0
- bmesh/utils/py.typed +0 -0
- bpy/app/handlers/py.typed +0 -0
- bpy/app/icons/py.typed +0 -0
- bpy/app/py.typed +0 -0
- bpy/app/timers/py.typed +0 -0
- bpy/app/translations/py.typed +0 -0
- bpy/msgbus/py.typed +0 -0
- bpy/ops/action/py.typed +0 -0
- bpy/ops/anim/py.typed +0 -0
- bpy/ops/armature/py.typed +0 -0
- bpy/ops/asset/py.typed +0 -0
- bpy/ops/bl_pkg/py.typed +0 -0
- bpy/ops/boid/py.typed +0 -0
- bpy/ops/brush/py.typed +0 -0
- bpy/ops/buttons/py.typed +0 -0
- bpy/ops/cachefile/py.typed +0 -0
- bpy/ops/camera/py.typed +0 -0
- bpy/ops/clip/py.typed +0 -0
- bpy/ops/cloth/py.typed +0 -0
- bpy/ops/collection/py.typed +0 -0
- bpy/ops/console/py.typed +0 -0
- bpy/ops/constraint/py.typed +0 -0
- bpy/ops/curve/py.typed +0 -0
- bpy/ops/curves/py.typed +0 -0
- bpy/ops/cycles/py.typed +0 -0
- bpy/ops/dpaint/py.typed +0 -0
- bpy/ops/ed/py.typed +0 -0
- bpy/ops/export_anim/py.typed +0 -0
- bpy/ops/export_scene/py.typed +0 -0
- bpy/ops/file/py.typed +0 -0
- bpy/ops/fluid/py.typed +0 -0
- bpy/ops/font/py.typed +0 -0
- bpy/ops/geometry/py.typed +0 -0
- bpy/ops/gizmogroup/py.typed +0 -0
- bpy/ops/gpencil/py.typed +0 -0
- bpy/ops/graph/py.typed +0 -0
- bpy/ops/grease_pencil/py.typed +0 -0
- bpy/ops/image/py.typed +0 -0
- bpy/ops/import_anim/py.typed +0 -0
- bpy/ops/import_curve/py.typed +0 -0
- bpy/ops/import_scene/py.typed +0 -0
- bpy/ops/info/py.typed +0 -0
- bpy/ops/lattice/py.typed +0 -0
- bpy/ops/marker/py.typed +0 -0
- bpy/ops/mask/py.typed +0 -0
- bpy/ops/material/py.typed +0 -0
- bpy/ops/mball/py.typed +0 -0
- bpy/ops/mesh/py.typed +0 -0
- bpy/ops/nla/py.typed +0 -0
- bpy/ops/node/py.typed +0 -0
- bpy/ops/object/py.typed +0 -0
- bpy/ops/outliner/py.typed +0 -0
- bpy/ops/paint/py.typed +0 -0
- bpy/ops/paintcurve/py.typed +0 -0
- bpy/ops/palette/py.typed +0 -0
- bpy/ops/particle/py.typed +0 -0
- bpy/ops/pose/py.typed +0 -0
- bpy/ops/poselib/py.typed +0 -0
- bpy/ops/preferences/py.typed +0 -0
- bpy/ops/ptcache/py.typed +0 -0
- bpy/ops/py.typed +0 -0
- bpy/ops/render/py.typed +0 -0
- bpy/ops/rigidbody/py.typed +0 -0
- bpy/ops/scene/py.typed +0 -0
- bpy/ops/screen/py.typed +0 -0
- bpy/ops/script/py.typed +0 -0
- bpy/ops/sculpt/py.typed +0 -0
- bpy/ops/sculpt_curves/py.typed +0 -0
- bpy/ops/sequencer/py.typed +0 -0
- bpy/ops/sound/py.typed +0 -0
- bpy/ops/spreadsheet/py.typed +0 -0
- bpy/ops/surface/py.typed +0 -0
- bpy/ops/text/py.typed +0 -0
- bpy/ops/text_editor/py.typed +0 -0
- bpy/ops/texture/py.typed +0 -0
- bpy/ops/transform/py.typed +0 -0
- bpy/ops/ui/py.typed +0 -0
- bpy/ops/uilist/py.typed +0 -0
- bpy/ops/uv/py.typed +0 -0
- bpy/ops/view2d/py.typed +0 -0
- bpy/ops/view3d/py.typed +0 -0
- bpy/ops/wm/py.typed +0 -0
- bpy/ops/workspace/py.typed +0 -0
- bpy/ops/world/py.typed +0 -0
- bpy/path/py.typed +0 -0
- bpy/props/py.typed +0 -0
- bpy/types/py.typed +0 -0
- bpy/utils/previews/py.typed +0 -0
- bpy/utils/py.typed +0 -0
- bpy/utils/units/py.typed +0 -0
- bpy_extras/anim_utils/py.typed +0 -0
- bpy_extras/asset_utils/py.typed +0 -0
- bpy_extras/bmesh_utils/py.typed +0 -0
- bpy_extras/extensions/junction_module/py.typed +0 -0
- bpy_extras/extensions/py.typed +0 -0
- bpy_extras/id_map_utils/py.typed +0 -0
- bpy_extras/image_utils/py.typed +0 -0
- bpy_extras/io_utils/py.typed +0 -0
- bpy_extras/keyconfig_utils/py.typed +0 -0
- bpy_extras/mesh_utils/py.typed +0 -0
- bpy_extras/node_shader_utils/py.typed +0 -0
- bpy_extras/node_utils/py.typed +0 -0
- bpy_extras/object_utils/py.typed +0 -0
- bpy_extras/view3d_utils/py.typed +0 -0
- bpy_extras/wm_utils/progress_report/py.typed +0 -0
- bpy_extras/wm_utils/py.typed +0 -0
- fake_bpy_module-20240516.dist-info/RECORD +0 -618
- freestyle/chainingiterators/py.typed +0 -0
- freestyle/functions/py.typed +0 -0
- freestyle/predicates/py.typed +0 -0
- freestyle/shaders/py.typed +0 -0
- freestyle/types/py.typed +0 -0
- freestyle/utils/ContextFunctions/py.typed +0 -0
- freestyle/utils/py.typed +0 -0
- gpu/capabilities/py.typed +0 -0
- gpu/matrix/py.typed +0 -0
- gpu/platform/py.typed +0 -0
- gpu/select/py.typed +0 -0
- gpu/shader/py.typed +0 -0
- gpu/state/py.typed +0 -0
- gpu/texture/py.typed +0 -0
- gpu/types/py.typed +0 -0
- gpu_extras/batch/py.typed +0 -0
- gpu_extras/presets/py.typed +0 -0
- idprop/types/py.typed +0 -0
- imbuf/types/py.typed +0 -0
- mathutils/bvhtree/py.typed +0 -0
- mathutils/geometry/py.typed +0 -0
- mathutils/interpolate/py.typed +0 -0
- mathutils/kdtree/py.typed +0 -0
- mathutils/noise/py.typed +0 -0
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240517.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240517.dist-info}/top_level.txt +0 -0
bpy/ops/workspace/__init__.pyi
CHANGED
|
@@ -4,119 +4,105 @@ import bpy.types
|
|
|
4
4
|
GenericType = typing.TypeVar("GenericType")
|
|
5
5
|
|
|
6
6
|
def add(
|
|
7
|
-
override_context: typing.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
11
|
-
undo: typing.Optional[bool] = None,
|
|
7
|
+
override_context: dict[str, typing.Any] | bpy.types.Context | None = None,
|
|
8
|
+
execution_context: str | int | None = None,
|
|
9
|
+
undo: bool | None = None,
|
|
12
10
|
):
|
|
13
11
|
"""Add a new workspace by duplicating the current one or appending one from the user configuration
|
|
14
12
|
|
|
15
|
-
:type override_context:
|
|
16
|
-
:type execution_context:
|
|
17
|
-
:type undo:
|
|
13
|
+
:type override_context: dict[str, typing.Any] | bpy.types.Context | None
|
|
14
|
+
:type execution_context: str | int | None
|
|
15
|
+
:type undo: bool | None
|
|
18
16
|
"""
|
|
19
17
|
|
|
20
18
|
...
|
|
21
19
|
|
|
22
20
|
def append_activate(
|
|
23
|
-
override_context: typing.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
idname: typing.Union[str, typing.Any] = "",
|
|
29
|
-
filepath: typing.Union[str, typing.Any] = "",
|
|
21
|
+
override_context: dict[str, typing.Any] | bpy.types.Context | None = None,
|
|
22
|
+
execution_context: str | int | None = None,
|
|
23
|
+
undo: bool | None = None,
|
|
24
|
+
idname: str | typing.Any = "",
|
|
25
|
+
filepath: str | typing.Any = "",
|
|
30
26
|
):
|
|
31
27
|
"""Append a workspace and make it the active one in the current window
|
|
32
28
|
|
|
33
|
-
:type override_context:
|
|
34
|
-
:type execution_context:
|
|
35
|
-
:type undo:
|
|
29
|
+
:type override_context: dict[str, typing.Any] | bpy.types.Context | None
|
|
30
|
+
:type execution_context: str | int | None
|
|
31
|
+
:type undo: bool | None
|
|
36
32
|
:param idname: Identifier, Name of the workspace to append and activate
|
|
37
|
-
:type idname:
|
|
33
|
+
:type idname: str | typing.Any
|
|
38
34
|
:param filepath: Filepath, Path to the library
|
|
39
|
-
:type filepath:
|
|
35
|
+
:type filepath: str | typing.Any
|
|
40
36
|
"""
|
|
41
37
|
|
|
42
38
|
...
|
|
43
39
|
|
|
44
40
|
def delete(
|
|
45
|
-
override_context: typing.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
49
|
-
undo: typing.Optional[bool] = None,
|
|
41
|
+
override_context: dict[str, typing.Any] | bpy.types.Context | None = None,
|
|
42
|
+
execution_context: str | int | None = None,
|
|
43
|
+
undo: bool | None = None,
|
|
50
44
|
):
|
|
51
45
|
"""Delete the active workspace
|
|
52
46
|
|
|
53
|
-
:type override_context:
|
|
54
|
-
:type execution_context:
|
|
55
|
-
:type undo:
|
|
47
|
+
:type override_context: dict[str, typing.Any] | bpy.types.Context | None
|
|
48
|
+
:type execution_context: str | int | None
|
|
49
|
+
:type undo: bool | None
|
|
56
50
|
"""
|
|
57
51
|
|
|
58
52
|
...
|
|
59
53
|
|
|
60
54
|
def duplicate(
|
|
61
|
-
override_context: typing.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
65
|
-
undo: typing.Optional[bool] = None,
|
|
55
|
+
override_context: dict[str, typing.Any] | bpy.types.Context | None = None,
|
|
56
|
+
execution_context: str | int | None = None,
|
|
57
|
+
undo: bool | None = None,
|
|
66
58
|
):
|
|
67
59
|
"""Add a new workspace
|
|
68
60
|
|
|
69
|
-
:type override_context:
|
|
70
|
-
:type execution_context:
|
|
71
|
-
:type undo:
|
|
61
|
+
:type override_context: dict[str, typing.Any] | bpy.types.Context | None
|
|
62
|
+
:type execution_context: str | int | None
|
|
63
|
+
:type undo: bool | None
|
|
72
64
|
"""
|
|
73
65
|
|
|
74
66
|
...
|
|
75
67
|
|
|
76
68
|
def reorder_to_back(
|
|
77
|
-
override_context: typing.
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
81
|
-
undo: typing.Optional[bool] = None,
|
|
69
|
+
override_context: dict[str, typing.Any] | bpy.types.Context | None = None,
|
|
70
|
+
execution_context: str | int | None = None,
|
|
71
|
+
undo: bool | None = None,
|
|
82
72
|
):
|
|
83
73
|
"""Reorder workspace to be last in the list
|
|
84
74
|
|
|
85
|
-
:type override_context:
|
|
86
|
-
:type execution_context:
|
|
87
|
-
:type undo:
|
|
75
|
+
:type override_context: dict[str, typing.Any] | bpy.types.Context | None
|
|
76
|
+
:type execution_context: str | int | None
|
|
77
|
+
:type undo: bool | None
|
|
88
78
|
"""
|
|
89
79
|
|
|
90
80
|
...
|
|
91
81
|
|
|
92
82
|
def reorder_to_front(
|
|
93
|
-
override_context: typing.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
97
|
-
undo: typing.Optional[bool] = None,
|
|
83
|
+
override_context: dict[str, typing.Any] | bpy.types.Context | None = None,
|
|
84
|
+
execution_context: str | int | None = None,
|
|
85
|
+
undo: bool | None = None,
|
|
98
86
|
):
|
|
99
87
|
"""Reorder workspace to be first in the list
|
|
100
88
|
|
|
101
|
-
:type override_context:
|
|
102
|
-
:type execution_context:
|
|
103
|
-
:type undo:
|
|
89
|
+
:type override_context: dict[str, typing.Any] | bpy.types.Context | None
|
|
90
|
+
:type execution_context: str | int | None
|
|
91
|
+
:type undo: bool | None
|
|
104
92
|
"""
|
|
105
93
|
|
|
106
94
|
...
|
|
107
95
|
|
|
108
96
|
def scene_pin_toggle(
|
|
109
|
-
override_context: typing.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
113
|
-
undo: typing.Optional[bool] = None,
|
|
97
|
+
override_context: dict[str, typing.Any] | bpy.types.Context | None = None,
|
|
98
|
+
execution_context: str | int | None = None,
|
|
99
|
+
undo: bool | None = None,
|
|
114
100
|
):
|
|
115
101
|
"""Remember the last used scene for the current workspace and switch to it whenever this workspace is activated again
|
|
116
102
|
|
|
117
|
-
:type override_context:
|
|
118
|
-
:type execution_context:
|
|
119
|
-
:type undo:
|
|
103
|
+
:type override_context: dict[str, typing.Any] | bpy.types.Context | None
|
|
104
|
+
:type execution_context: str | int | None
|
|
105
|
+
:type undo: bool | None
|
|
120
106
|
"""
|
|
121
107
|
|
|
122
108
|
...
|
bpy/ops/world/__init__.pyi
CHANGED
|
@@ -4,33 +4,29 @@ import bpy.types
|
|
|
4
4
|
GenericType = typing.TypeVar("GenericType")
|
|
5
5
|
|
|
6
6
|
def convert_volume_to_mesh(
|
|
7
|
-
override_context: typing.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
11
|
-
undo: typing.Optional[bool] = None,
|
|
7
|
+
override_context: dict[str, typing.Any] | bpy.types.Context | None = None,
|
|
8
|
+
execution_context: str | int | None = None,
|
|
9
|
+
undo: bool | None = None,
|
|
12
10
|
):
|
|
13
11
|
"""Convert the volume of a world to a mesh.
|
|
14
12
|
|
|
15
|
-
:type override_context:
|
|
16
|
-
:type execution_context:
|
|
17
|
-
:type undo:
|
|
13
|
+
:type override_context: dict[str, typing.Any] | bpy.types.Context | None
|
|
14
|
+
:type execution_context: str | int | None
|
|
15
|
+
:type undo: bool | None
|
|
18
16
|
"""
|
|
19
17
|
|
|
20
18
|
...
|
|
21
19
|
|
|
22
20
|
def new(
|
|
23
|
-
override_context: typing.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
27
|
-
undo: typing.Optional[bool] = None,
|
|
21
|
+
override_context: dict[str, typing.Any] | bpy.types.Context | None = None,
|
|
22
|
+
execution_context: str | int | None = None,
|
|
23
|
+
undo: bool | None = None,
|
|
28
24
|
):
|
|
29
25
|
"""Create a new world Data-Block
|
|
30
26
|
|
|
31
|
-
:type override_context:
|
|
32
|
-
:type execution_context:
|
|
33
|
-
:type undo:
|
|
27
|
+
:type override_context: dict[str, typing.Any] | bpy.types.Context | None
|
|
28
|
+
:type execution_context: str | int | None
|
|
29
|
+
:type undo: bool | None
|
|
34
30
|
"""
|
|
35
31
|
|
|
36
32
|
...
|
bpy/path/__init__.pyi
CHANGED
|
@@ -10,27 +10,38 @@ import bpy.types
|
|
|
10
10
|
GenericType = typing.TypeVar("GenericType")
|
|
11
11
|
|
|
12
12
|
def abspath(
|
|
13
|
-
path,
|
|
14
|
-
start: typing.Optional[typing.Union[str, bytes]] = None,
|
|
15
|
-
library: typing.Optional[bpy.types.Library] = None,
|
|
13
|
+
path, start: str | bytes | None = None, library: bpy.types.Library | None = None
|
|
16
14
|
) -> str:
|
|
17
15
|
"""Returns the absolute path relative to the current blend file
|
|
18
16
|
using the "//" prefix.
|
|
19
17
|
|
|
20
18
|
:param start: Relative to this path,
|
|
21
19
|
when not set the current filename is used.
|
|
22
|
-
:type start:
|
|
20
|
+
:type start: str | bytes | None
|
|
23
21
|
:param library: The library this path is from. This is only included for
|
|
24
22
|
convenience, when the library is not None its path replaces start.
|
|
25
|
-
:type library:
|
|
23
|
+
:type library: bpy.types.Library | None
|
|
26
24
|
:return: The absolute path.
|
|
27
25
|
:rtype: str
|
|
28
26
|
"""
|
|
29
27
|
|
|
30
28
|
...
|
|
31
29
|
|
|
32
|
-
def abspath(
|
|
33
|
-
|
|
30
|
+
def abspath(
|
|
31
|
+
path, start: str | bytes | None = None, library: bpy.types.Library | None = None
|
|
32
|
+
) -> str:
|
|
33
|
+
"""Returns the absolute path relative to the current blend file
|
|
34
|
+
using the "//" prefix.
|
|
35
|
+
|
|
36
|
+
:param start: Relative to this path,
|
|
37
|
+
when not set the current filename is used.
|
|
38
|
+
:type start: str | bytes | None
|
|
39
|
+
:param library: The library this path is from. This is only included for
|
|
40
|
+
convenience, when the library is not None its path replaces start.
|
|
41
|
+
:type library: bpy.types.Library | None
|
|
42
|
+
:return: The absolute path.
|
|
43
|
+
:rtype: str
|
|
44
|
+
"""
|
|
34
45
|
|
|
35
46
|
...
|
|
36
47
|
|
|
@@ -43,228 +54,321 @@ def basename(path) -> str:
|
|
|
43
54
|
|
|
44
55
|
...
|
|
45
56
|
|
|
46
|
-
def basename(path):
|
|
47
|
-
""" ""
|
|
57
|
+
def basename(path) -> str:
|
|
58
|
+
"""Equivalent to os.path.basename, but skips a "//" prefix.Use for Windows compatibility.
|
|
59
|
+
|
|
60
|
+
:return: The base name of the given path.
|
|
61
|
+
:rtype: str
|
|
62
|
+
"""
|
|
48
63
|
|
|
49
64
|
...
|
|
50
65
|
|
|
51
|
-
def clean_name(
|
|
52
|
-
name: typing.Optional[typing.Union[str, bytes]], replace: typing.Optional[str] = "_"
|
|
53
|
-
) -> str:
|
|
66
|
+
def clean_name(name: str | bytes | None, replace: str | None = "_") -> str:
|
|
54
67
|
"""Returns a name with characters replaced that
|
|
55
68
|
may cause problems under various circumstances,
|
|
56
69
|
such as writing to a file.All characters besides A-Z/a-z, 0-9 are replaced with "_"
|
|
57
70
|
or the replace argument if defined.
|
|
58
71
|
|
|
59
72
|
:param name: The path name.
|
|
60
|
-
:type name:
|
|
73
|
+
:type name: str | bytes | None
|
|
61
74
|
:param replace: The replacement for non-valid characters.
|
|
62
|
-
:type replace:
|
|
75
|
+
:type replace: str | None
|
|
63
76
|
:return: The cleaned name.
|
|
64
77
|
:rtype: str
|
|
65
78
|
"""
|
|
66
79
|
|
|
67
80
|
...
|
|
68
81
|
|
|
69
|
-
def clean_name(name, replace):
|
|
70
|
-
"""
|
|
82
|
+
def clean_name(name: str | bytes | None, replace: str | None = "_") -> str:
|
|
83
|
+
"""Returns a name with characters replaced that
|
|
84
|
+
may cause problems under various circumstances,
|
|
85
|
+
such as writing to a file.All characters besides A-Z/a-z, 0-9 are replaced with "_"
|
|
86
|
+
or the replace argument if defined.
|
|
87
|
+
|
|
88
|
+
:param name: The path name.
|
|
89
|
+
:type name: str | bytes | None
|
|
90
|
+
:param replace: The replacement for non-valid characters.
|
|
91
|
+
:type replace: str | None
|
|
92
|
+
:return: The cleaned name.
|
|
93
|
+
:rtype: str
|
|
94
|
+
"""
|
|
71
95
|
|
|
72
96
|
...
|
|
73
97
|
|
|
74
98
|
def display_name(
|
|
75
|
-
name:
|
|
76
|
-
has_ext: typing.Optional[bool] = True,
|
|
77
|
-
title_case: typing.Optional[bool] = True,
|
|
99
|
+
name: str | None, has_ext: bool | None = True, title_case: bool | None = True
|
|
78
100
|
) -> str:
|
|
79
101
|
"""Creates a display string from name to be used menus and the user interface.
|
|
80
102
|
Intended for use with filenames and module names.
|
|
81
103
|
|
|
82
104
|
:param name: The name to be used for displaying the user interface.
|
|
83
|
-
:type name:
|
|
105
|
+
:type name: str | None
|
|
84
106
|
:param has_ext: Remove file extension from name.
|
|
85
|
-
:type has_ext:
|
|
107
|
+
:type has_ext: bool | None
|
|
86
108
|
:param title_case: Convert lowercase names to title case.
|
|
87
|
-
:type title_case:
|
|
109
|
+
:type title_case: bool | None
|
|
88
110
|
:return: The display string.
|
|
89
111
|
:rtype: str
|
|
90
112
|
"""
|
|
91
113
|
|
|
92
114
|
...
|
|
93
115
|
|
|
94
|
-
def display_name(
|
|
95
|
-
|
|
116
|
+
def display_name(
|
|
117
|
+
name: str | None, has_ext: bool | None = True, title_case: bool | None = True
|
|
118
|
+
) -> str:
|
|
119
|
+
"""Creates a display string from name to be used menus and the user interface.
|
|
120
|
+
Intended for use with filenames and module names.
|
|
121
|
+
|
|
122
|
+
:param name: The name to be used for displaying the user interface.
|
|
123
|
+
:type name: str | None
|
|
124
|
+
:param has_ext: Remove file extension from name.
|
|
125
|
+
:type has_ext: bool | None
|
|
126
|
+
:param title_case: Convert lowercase names to title case.
|
|
127
|
+
:type title_case: bool | None
|
|
128
|
+
:return: The display string.
|
|
129
|
+
:rtype: str
|
|
130
|
+
"""
|
|
96
131
|
|
|
97
132
|
...
|
|
98
133
|
|
|
99
|
-
def display_name_from_filepath(name:
|
|
134
|
+
def display_name_from_filepath(name: str | None) -> str:
|
|
100
135
|
"""Returns the path stripped of directory and extension,
|
|
101
136
|
ensured to be utf8 compatible.
|
|
102
137
|
|
|
103
138
|
:param name: The file path to convert.
|
|
104
|
-
:type name:
|
|
139
|
+
:type name: str | None
|
|
105
140
|
:return: The display name.
|
|
106
141
|
:rtype: str
|
|
107
142
|
"""
|
|
108
143
|
|
|
109
144
|
...
|
|
110
145
|
|
|
111
|
-
def display_name_from_filepath(name):
|
|
112
|
-
"""
|
|
146
|
+
def display_name_from_filepath(name: str | None) -> str:
|
|
147
|
+
"""Returns the path stripped of directory and extension,
|
|
148
|
+
ensured to be utf8 compatible.
|
|
149
|
+
|
|
150
|
+
:param name: The file path to convert.
|
|
151
|
+
:type name: str | None
|
|
152
|
+
:return: The display name.
|
|
153
|
+
:rtype: str
|
|
154
|
+
"""
|
|
113
155
|
|
|
114
156
|
...
|
|
115
157
|
|
|
116
|
-
def display_name_to_filepath(name:
|
|
158
|
+
def display_name_to_filepath(name: str | None) -> str:
|
|
117
159
|
"""Performs the reverse of display_name using literal versions of characters
|
|
118
160
|
which aren't supported in a filepath.
|
|
119
161
|
|
|
120
162
|
:param name: The display name to convert.
|
|
121
|
-
:type name:
|
|
163
|
+
:type name: str | None
|
|
122
164
|
:return: The file path.
|
|
123
165
|
:rtype: str
|
|
124
166
|
"""
|
|
125
167
|
|
|
126
168
|
...
|
|
127
169
|
|
|
128
|
-
def display_name_to_filepath(name):
|
|
129
|
-
"""
|
|
170
|
+
def display_name_to_filepath(name: str | None) -> str:
|
|
171
|
+
"""Performs the reverse of display_name using literal versions of characters
|
|
172
|
+
which aren't supported in a filepath.
|
|
173
|
+
|
|
174
|
+
:param name: The display name to convert.
|
|
175
|
+
:type name: str | None
|
|
176
|
+
:return: The file path.
|
|
177
|
+
:rtype: str
|
|
178
|
+
"""
|
|
130
179
|
|
|
131
180
|
...
|
|
132
181
|
|
|
133
182
|
def ensure_ext(
|
|
134
|
-
filepath:
|
|
135
|
-
ext: typing.Optional[str],
|
|
136
|
-
case_sensitive: typing.Optional[bool] = False,
|
|
183
|
+
filepath: str | None, ext: str | None, case_sensitive: bool | None = False
|
|
137
184
|
) -> str:
|
|
138
185
|
"""Return the path with the extension added if it is not already set.
|
|
139
186
|
|
|
140
187
|
:param filepath: The file path.
|
|
141
|
-
:type filepath:
|
|
188
|
+
:type filepath: str | None
|
|
142
189
|
:param ext: The extension to check for, can be a compound extension. Should
|
|
143
190
|
start with a dot, such as '.blend' or '.tar.gz'.
|
|
144
|
-
:type ext:
|
|
191
|
+
:type ext: str | None
|
|
145
192
|
:param case_sensitive: Check for matching case when comparing extensions.
|
|
146
|
-
:type case_sensitive:
|
|
193
|
+
:type case_sensitive: bool | None
|
|
147
194
|
:return: The file path with the given extension.
|
|
148
195
|
:rtype: str
|
|
149
196
|
"""
|
|
150
197
|
|
|
151
198
|
...
|
|
152
199
|
|
|
153
|
-
def ensure_ext(
|
|
154
|
-
|
|
200
|
+
def ensure_ext(
|
|
201
|
+
filepath: str | None, ext: str | None, case_sensitive: bool | None = False
|
|
202
|
+
) -> str:
|
|
203
|
+
"""Return the path with the extension added if it is not already set.
|
|
204
|
+
|
|
205
|
+
:param filepath: The file path.
|
|
206
|
+
:type filepath: str | None
|
|
207
|
+
:param ext: The extension to check for, can be a compound extension. Should
|
|
208
|
+
start with a dot, such as '.blend' or '.tar.gz'.
|
|
209
|
+
:type ext: str | None
|
|
210
|
+
:param case_sensitive: Check for matching case when comparing extensions.
|
|
211
|
+
:type case_sensitive: bool | None
|
|
212
|
+
:return: The file path with the given extension.
|
|
213
|
+
:rtype: str
|
|
214
|
+
"""
|
|
155
215
|
|
|
156
216
|
...
|
|
157
217
|
|
|
158
|
-
def is_subdir(path:
|
|
218
|
+
def is_subdir(path: str | bytes | None, directory) -> bool:
|
|
159
219
|
"""Returns true if path in a subdirectory of directory.
|
|
160
220
|
Both paths must be absolute.
|
|
161
221
|
|
|
162
222
|
:param path: An absolute path.
|
|
163
|
-
:type path:
|
|
223
|
+
:type path: str | bytes | None
|
|
164
224
|
:return: Whether or not the path is a subdirectory.
|
|
165
225
|
:rtype: bool
|
|
166
226
|
"""
|
|
167
227
|
|
|
168
228
|
...
|
|
169
229
|
|
|
170
|
-
def is_subdir(path, directory):
|
|
171
|
-
"""
|
|
230
|
+
def is_subdir(path: str | bytes | None, directory) -> bool:
|
|
231
|
+
"""Returns true if path in a subdirectory of directory.
|
|
232
|
+
Both paths must be absolute.
|
|
233
|
+
|
|
234
|
+
:param path: An absolute path.
|
|
235
|
+
:type path: str | bytes | None
|
|
236
|
+
:return: Whether or not the path is a subdirectory.
|
|
237
|
+
:rtype: bool
|
|
238
|
+
"""
|
|
172
239
|
|
|
173
240
|
...
|
|
174
241
|
|
|
175
242
|
def module_names(
|
|
176
|
-
path:
|
|
177
|
-
|
|
178
|
-
package: typing.Optional[str] = "",
|
|
179
|
-
) -> typing.List[str]:
|
|
243
|
+
path: str | None, recursive: bool | None = False, package: str | None = ""
|
|
244
|
+
) -> list[str]:
|
|
180
245
|
"""Return a list of modules which can be imported from path.
|
|
181
246
|
|
|
182
247
|
:param path: a directory to scan.
|
|
183
|
-
:type path:
|
|
248
|
+
:type path: str | None
|
|
184
249
|
:param recursive: Also return submodule names for packages.
|
|
185
|
-
:type recursive:
|
|
250
|
+
:type recursive: bool | None
|
|
186
251
|
:param package: Optional string, used as the prefix for module names (without the trailing ".").
|
|
187
|
-
:type package:
|
|
252
|
+
:type package: str | None
|
|
188
253
|
:return: a list of string pairs (module_name, module_file).
|
|
189
|
-
:rtype:
|
|
254
|
+
:rtype: list[str]
|
|
190
255
|
"""
|
|
191
256
|
|
|
192
257
|
...
|
|
193
258
|
|
|
194
|
-
def module_names(
|
|
195
|
-
|
|
259
|
+
def module_names(
|
|
260
|
+
path: str | None, recursive: bool | None = False, package: str | None = ""
|
|
261
|
+
) -> list[str]:
|
|
262
|
+
"""Return a list of modules which can be imported from path.
|
|
263
|
+
|
|
264
|
+
:param path: a directory to scan.
|
|
265
|
+
:type path: str | None
|
|
266
|
+
:param recursive: Also return submodule names for packages.
|
|
267
|
+
:type recursive: bool | None
|
|
268
|
+
:param package: Optional string, used as the prefix for module names (without the trailing ".").
|
|
269
|
+
:type package: str | None
|
|
270
|
+
:return: a list of string pairs (module_name, module_file).
|
|
271
|
+
:rtype: list[str]
|
|
272
|
+
"""
|
|
196
273
|
|
|
197
274
|
...
|
|
198
275
|
|
|
199
|
-
def native_pathsep(path:
|
|
276
|
+
def native_pathsep(path: str | None) -> str:
|
|
200
277
|
"""Replace the path separator with the systems native os.sep.
|
|
201
278
|
|
|
202
279
|
:param path: The path to replace.
|
|
203
|
-
:type path:
|
|
280
|
+
:type path: str | None
|
|
204
281
|
:return: The path with system native separators.
|
|
205
282
|
:rtype: str
|
|
206
283
|
"""
|
|
207
284
|
|
|
208
285
|
...
|
|
209
286
|
|
|
210
|
-
def native_pathsep(path):
|
|
211
|
-
"""
|
|
287
|
+
def native_pathsep(path: str | None) -> str:
|
|
288
|
+
"""Replace the path separator with the systems native os.sep.
|
|
289
|
+
|
|
290
|
+
:param path: The path to replace.
|
|
291
|
+
:type path: str | None
|
|
292
|
+
:return: The path with system native separators.
|
|
293
|
+
:rtype: str
|
|
294
|
+
"""
|
|
212
295
|
|
|
213
296
|
...
|
|
214
297
|
|
|
215
|
-
def reduce_dirs(dirs:
|
|
298
|
+
def reduce_dirs(dirs: list[str] | None) -> list[str]:
|
|
216
299
|
"""Given a sequence of directories, remove duplicates and
|
|
217
300
|
any directories nested in one of the other paths.
|
|
218
301
|
(Useful for recursive path searching).
|
|
219
302
|
|
|
220
303
|
:param dirs: Sequence of directory paths.
|
|
221
|
-
:type dirs:
|
|
304
|
+
:type dirs: list[str] | None
|
|
222
305
|
:return: A unique list of paths.
|
|
223
|
-
:rtype:
|
|
306
|
+
:rtype: list[str]
|
|
224
307
|
"""
|
|
225
308
|
|
|
226
309
|
...
|
|
227
310
|
|
|
228
|
-
def reduce_dirs(dirs):
|
|
229
|
-
"""
|
|
311
|
+
def reduce_dirs(dirs: list[str] | None) -> list[str]:
|
|
312
|
+
"""Given a sequence of directories, remove duplicates and
|
|
313
|
+
any directories nested in one of the other paths.
|
|
314
|
+
(Useful for recursive path searching).
|
|
315
|
+
|
|
316
|
+
:param dirs: Sequence of directory paths.
|
|
317
|
+
:type dirs: list[str] | None
|
|
318
|
+
:return: A unique list of paths.
|
|
319
|
+
:rtype: list[str]
|
|
320
|
+
"""
|
|
230
321
|
|
|
231
322
|
...
|
|
232
323
|
|
|
233
|
-
def relpath(
|
|
234
|
-
path: typing.Optional[typing.Union[str, bytes]],
|
|
235
|
-
start: typing.Optional[typing.Union[str, bytes]] = None,
|
|
236
|
-
) -> str:
|
|
324
|
+
def relpath(path: str | bytes | None, start: str | bytes | None = None) -> str:
|
|
237
325
|
"""Returns the path relative to the current blend file using the "//" prefix.
|
|
238
326
|
|
|
239
327
|
:param path: An absolute path.
|
|
240
|
-
:type path:
|
|
328
|
+
:type path: str | bytes | None
|
|
241
329
|
:param start: Relative to this path,
|
|
242
330
|
when not set the current filename is used.
|
|
243
|
-
:type start:
|
|
331
|
+
:type start: str | bytes | None
|
|
244
332
|
:return: The relative path.
|
|
245
333
|
:rtype: str
|
|
246
334
|
"""
|
|
247
335
|
|
|
248
336
|
...
|
|
249
337
|
|
|
250
|
-
def relpath(path, start):
|
|
251
|
-
""" ""
|
|
338
|
+
def relpath(path: str | bytes | None, start: str | bytes | None = None) -> str:
|
|
339
|
+
"""Returns the path relative to the current blend file using the "//" prefix.
|
|
340
|
+
|
|
341
|
+
:param path: An absolute path.
|
|
342
|
+
:type path: str | bytes | None
|
|
343
|
+
:param start: Relative to this path,
|
|
344
|
+
when not set the current filename is used.
|
|
345
|
+
:type start: str | bytes | None
|
|
346
|
+
:return: The relative path.
|
|
347
|
+
:rtype: str
|
|
348
|
+
"""
|
|
252
349
|
|
|
253
350
|
...
|
|
254
351
|
|
|
255
|
-
def resolve_ncase(path:
|
|
352
|
+
def resolve_ncase(path: str | None) -> str:
|
|
256
353
|
"""Resolve a case insensitive path on a case sensitive system,
|
|
257
354
|
returning a string with the path if found else return the original path.
|
|
258
355
|
|
|
259
356
|
:param path: The path name to resolve.
|
|
260
|
-
:type path:
|
|
357
|
+
:type path: str | None
|
|
261
358
|
:return: The resolved path.
|
|
262
359
|
:rtype: str
|
|
263
360
|
"""
|
|
264
361
|
|
|
265
362
|
...
|
|
266
363
|
|
|
267
|
-
def resolve_ncase(path):
|
|
268
|
-
"""
|
|
364
|
+
def resolve_ncase(path: str | None) -> str:
|
|
365
|
+
"""Resolve a case insensitive path on a case sensitive system,
|
|
366
|
+
returning a string with the path if found else return the original path.
|
|
367
|
+
|
|
368
|
+
:param path: The path name to resolve.
|
|
369
|
+
:type path: str | None
|
|
370
|
+
:return: The resolved path.
|
|
371
|
+
:rtype: str
|
|
372
|
+
"""
|
|
269
373
|
|
|
270
374
|
...
|