fake-bpy-module 20250603__py3-none-any.whl → 20250606__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/addons/cli/__init__.pyi +1 -1
- _bpy_internal/extensions/junction_module/__init__.pyi +7 -7
- _bpy_internal/extensions/stale_file_manager/__init__.pyi +8 -8
- _bpy_internal/extensions/wheel_manager/__init__.pyi +3 -3
- _bpy_internal/freedesktop/__init__.pyi +16 -16
- _bpy_internal/grease_pencil/stroke/__init__.pyi +4 -4
- _bpy_internal/system_info/text_generate_runtime/__init__.pyi +1 -1
- _bpy_internal/system_info/url_prefill_runtime/__init__.pyi +1 -1
- _bpy_internal/system_info/url_prefill_startup/__init__.pyi +2 -2
- addon_utils/__init__.pyi +12 -12
- animsys_refactor/__init__.pyi +6 -6
- aud/__init__.pyi +11 -11
- bgl/__init__.pyi +272 -252
- bl_app_override/__init__.pyi +3 -3
- bl_app_override/helpers/__init__.pyi +2 -2
- bl_app_template_utils/__init__.pyi +4 -4
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +2 -2
- bl_i18n_utils/bl_extract_messages/__init__.pyi +18 -16
- bl_i18n_utils/merge_po/__init__.pyi +1 -1
- bl_i18n_utils/settings/__init__.pyi +6 -6
- bl_i18n_utils/utils/__init__.pyi +48 -46
- bl_i18n_utils/utils_cli/__init__.pyi +6 -6
- bl_i18n_utils/utils_languages_menu/__init__.pyi +1 -1
- bl_i18n_utils/utils_rtl/__init__.pyi +2 -2
- bl_keymap_utils/io/__init__.pyi +9 -9
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +1 -1
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +1 -1
- bl_keymap_utils/platform_helpers/__init__.pyi +2 -2
- bl_keymap_utils/versioning/__init__.pyi +1 -1
- bl_operators/__init__.pyi +2 -2
- bl_operators/add_mesh_torus/__init__.pyi +6 -6
- bl_operators/anim/__init__.pyi +24 -24
- bl_operators/assets/__init__.pyi +9 -9
- bl_operators/bmesh/find_adjacent/__init__.pyi +11 -9
- bl_operators/bone_selection_sets/__init__.pyi +18 -18
- bl_operators/clip/__init__.pyi +26 -26
- bl_operators/connect_to_output/__init__.pyi +17 -15
- bl_operators/console/__init__.pyi +10 -10
- bl_operators/constraint/__init__.pyi +8 -8
- bl_operators/file/__init__.pyi +6 -6
- bl_operators/freestyle/__init__.pyi +9 -9
- bl_operators/geometry_nodes/__init__.pyi +24 -24
- bl_operators/grease_pencil/__init__.pyi +2 -2
- bl_operators/image/__init__.pyi +7 -7
- bl_operators/image_as_planes/__init__.pyi +32 -32
- bl_operators/mesh/__init__.pyi +7 -7
- bl_operators/node/__init__.pyi +31 -31
- bl_operators/node_editor/node_functions/__init__.pyi +9 -9
- bl_operators/object/__init__.pyi +31 -31
- bl_operators/object_align/__init__.pyi +5 -5
- bl_operators/object_quick_effects/__init__.pyi +9 -9
- bl_operators/object_randomize_transform/__init__.pyi +3 -3
- bl_operators/presets/__init__.pyi +18 -18
- bl_operators/rigidbody/__init__.pyi +7 -7
- bl_operators/screen_play_rendered_anim/__init__.pyi +2 -2
- bl_operators/sequencer/__init__.pyi +19 -19
- bl_operators/spreadsheet/__init__.pyi +4 -4
- bl_operators/userpref/__init__.pyi +42 -42
- bl_operators/uvcalc_follow_active/__init__.pyi +5 -5
- bl_operators/uvcalc_lightmap/__init__.pyi +8 -8
- bl_operators/uvcalc_transform/__init__.pyi +20 -20
- bl_operators/vertexpaint_dirt/__init__.pyi +4 -4
- bl_operators/view3d/__init__.pyi +21 -19
- bl_operators/wm/__init__.pyi +88 -88
- bl_operators/world/__init__.pyi +2 -2
- bl_previews_utils/bl_previews_render/__init__.pyi +9 -7
- bl_rna_utils/data_path/__init__.pyi +2 -2
- bl_text_utils/external_editor/__init__.pyi +1 -1
- bl_ui/__init__.pyi +10 -10
- bl_ui/anim/__init__.pyi +2 -2
- bl_ui/asset_shelf/__init__.pyi +2 -2
- bl_ui/generic_ui_list/__init__.pyi +6 -6
- bl_ui/node_add_menu/__init__.pyi +15 -13
- bl_ui/node_add_menu_compositor/__init__.pyi +18 -18
- bl_ui/node_add_menu_geometry/__init__.pyi +54 -54
- bl_ui/node_add_menu_shader/__init__.pyi +16 -16
- bl_ui/node_add_menu_texture/__init__.pyi +9 -9
- bl_ui/properties_animviz/__init__.pyi +2 -2
- bl_ui/properties_collection/__init__.pyi +10 -8
- bl_ui/properties_constraint/__init__.pyi +125 -125
- bl_ui/properties_data_armature/__init__.pyi +22 -22
- bl_ui/properties_data_bone/__init__.pyi +20 -20
- bl_ui/properties_data_camera/__init__.pyi +19 -19
- bl_ui/properties_data_curve/__init__.pyi +23 -23
- bl_ui/properties_data_curves/__init__.pyi +9 -9
- bl_ui/properties_data_empty/__init__.pyi +4 -4
- bl_ui/properties_data_grease_pencil/__init__.pyi +25 -25
- bl_ui/properties_data_lattice/__init__.pyi +4 -4
- bl_ui/properties_data_light/__init__.pyi +14 -14
- bl_ui/properties_data_lightprobe/__init__.pyi +18 -18
- bl_ui/properties_data_mesh/__init__.pyi +26 -26
- bl_ui/properties_data_metaball/__init__.pyi +6 -6
- bl_ui/properties_data_modifier/__init__.pyi +12 -12
- bl_ui/properties_data_pointcloud/__init__.pyi +8 -8
- bl_ui/properties_data_shaderfx/__init__.pyi +1 -1
- bl_ui/properties_data_speaker/__init__.pyi +5 -5
- bl_ui/properties_data_volume/__init__.pyi +9 -9
- bl_ui/properties_freestyle/__init__.pyi +51 -51
- bl_ui/properties_grease_pencil_common/__init__.pyi +30 -30
- bl_ui/properties_mask_common/__init__.pyi +24 -24
- bl_ui/properties_material/__init__.pyi +27 -27
- bl_ui/properties_material_gpencil/__init__.pyi +12 -12
- bl_ui/properties_object/__init__.pyi +29 -29
- bl_ui/properties_output/__init__.pyi +29 -29
- bl_ui/properties_paint_common/__init__.pyi +59 -49
- bl_ui/properties_particle/__init__.pyi +101 -101
- bl_ui/properties_physics_cloth/__init__.pyi +20 -20
- bl_ui/properties_physics_common/__init__.pyi +8 -8
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +57 -57
- bl_ui/properties_physics_field/__init__.pyi +23 -23
- bl_ui/properties_physics_fluid/__init__.pyi +76 -76
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +3 -3
- bl_ui/properties_physics_rigidbody/__init__.pyi +18 -18
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +29 -29
- bl_ui/properties_physics_softbody/__init__.pyi +21 -21
- bl_ui/properties_render/__init__.pyi +81 -81
- bl_ui/properties_scene/__init__.pyi +22 -22
- bl_ui/properties_texture/__init__.pyi +39 -39
- bl_ui/properties_view_layer/__init__.pyi +12 -12
- bl_ui/properties_workspace/__init__.pyi +5 -5
- bl_ui/properties_world/__init__.pyi +18 -18
- bl_ui/space_clip/__init__.pyi +81 -81
- bl_ui/space_console/__init__.pyi +6 -6
- bl_ui/space_dopesheet/__init__.pyi +32 -32
- bl_ui/space_filebrowser/__init__.pyi +45 -45
- bl_ui/space_graph/__init__.pyi +21 -21
- bl_ui/space_image/__init__.pyi +73 -73
- bl_ui/space_info/__init__.pyi +6 -6
- bl_ui/space_nla/__init__.pyi +18 -18
- bl_ui/space_node/__init__.pyi +42 -42
- bl_ui/space_outliner/__init__.pyi +21 -21
- bl_ui/space_properties/__init__.pyi +6 -6
- bl_ui/space_sequencer/__init__.pyi +133 -133
- bl_ui/space_spreadsheet/__init__.pyi +4 -4
- bl_ui/space_statusbar/__init__.pyi +1 -1
- bl_ui/space_text/__init__.pyi +17 -17
- bl_ui/space_time/__init__.pyi +12 -12
- bl_ui/space_toolsystem_common/__init__.pyi +28 -26
- bl_ui/space_toolsystem_toolbar/__init__.pyi +36 -36
- bl_ui/space_topbar/__init__.pyi +32 -32
- bl_ui/space_userpref/__init__.pyi +132 -132
- bl_ui/space_view3d/__init__.pyi +297 -297
- bl_ui/space_view3d_toolbar/__init__.pyi +148 -149
- bl_ui/utils/__init__.pyi +5 -5
- bl_ui_utils/layout/__init__.pyi +1 -1
- blend_render_info/__init__.pyi +2 -2
- blf/__init__.pyi +15 -15
- bmesh/__init__.pyi +1 -1
- bmesh/ops/__init__.pyi +366 -357
- bmesh/types/__init__.pyi +59 -57
- bmesh/utils/__init__.pyi +2 -2
- bpy/app/__init__.pyi +5 -5
- bpy/app/icons/__init__.pyi +1 -1
- bpy/app/timers/__init__.pyi +2 -2
- bpy/app/translations/__init__.pyi +9 -9
- bpy/msgbus/__init__.pyi +3 -3
- bpy/ops/action/__init__.pyi +62 -38
- bpy/ops/anim/__init__.pyi +63 -61
- bpy/ops/armature/__init__.pyi +58 -48
- bpy/ops/asset/__init__.pyi +31 -17
- bpy/ops/boid/__init__.pyi +18 -8
- bpy/ops/brush/__init__.pyi +19 -13
- bpy/ops/buttons/__init__.pyi +14 -6
- bpy/ops/cachefile/__init__.pyi +9 -5
- bpy/ops/camera/__init__.pyi +2 -2
- bpy/ops/clip/__init__.pyi +112 -92
- bpy/ops/cloth/__init__.pyi +1 -1
- bpy/ops/collection/__init__.pyi +11 -9
- bpy/ops/console/__init__.pyi +37 -21
- bpy/ops/constraint/__init__.pyi +20 -18
- bpy/ops/curve/__init__.pyi +81 -51
- bpy/ops/curves/__init__.pyi +50 -30
- bpy/ops/cycles/__init__.pyi +3 -3
- bpy/ops/dpaint/__init__.pyi +5 -5
- bpy/ops/ed/__init__.pyi +19 -13
- bpy/ops/export_anim/__init__.pyi +1 -1
- bpy/ops/export_scene/__init__.pyi +2 -2
- bpy/ops/extensions/__init__.pyi +38 -32
- bpy/ops/file/__init__.pyi +72 -40
- bpy/ops/fluid/__init__.pyi +36 -14
- bpy/ops/font/__init__.pyi +41 -23
- bpy/ops/geometry/__init__.pyi +10 -10
- bpy/ops/gizmogroup/__init__.pyi +4 -2
- bpy/ops/gpencil/__init__.pyi +12 -8
- bpy/ops/graph/__init__.pyi +81 -65
- bpy/ops/grease_pencil/__init__.pyi +159 -115
- bpy/ops/image/__init__.pyi +63 -49
- bpy/ops/import_anim/__init__.pyi +1 -1
- bpy/ops/import_curve/__init__.pyi +1 -1
- bpy/ops/import_scene/__init__.pyi +2 -2
- bpy/ops/info/__init__.pyi +13 -7
- bpy/ops/lattice/__init__.pyi +14 -8
- bpy/ops/marker/__init__.pyi +13 -11
- bpy/ops/mask/__init__.pyi +59 -39
- bpy/ops/material/__init__.pyi +3 -3
- bpy/ops/mball/__init__.pyi +8 -8
- bpy/ops/mesh/__init__.pyi +182 -164
- bpy/ops/nla/__init__.pyi +65 -39
- bpy/ops/node/__init__.pyi +181 -147
- bpy/ops/object/__init__.pyi +262 -242
- bpy/ops/outliner/__init__.pyi +98 -72
- bpy/ops/paint/__init__.pyi +58 -54
- bpy/ops/paintcurve/__init__.pyi +12 -8
- bpy/ops/palette/__init__.pyi +11 -7
- bpy/ops/particle/__init__.pyi +58 -36
- bpy/ops/pointcloud/__init__.pyi +13 -7
- bpy/ops/pose/__init__.pyi +65 -51
- bpy/ops/poselib/__init__.pyi +17 -11
- bpy/ops/preferences/__init__.pyi +41 -35
- bpy/ops/ptcache/__init__.pyi +13 -7
- bpy/ops/render/__init__.pyi +17 -13
- bpy/ops/rigidbody/__init__.pyi +19 -13
- bpy/ops/scene/__init__.pyi +39 -37
- bpy/ops/screen/__init__.pyi +59 -39
- bpy/ops/script/__init__.pyi +5 -3
- bpy/ops/sculpt/__init__.pyi +44 -40
- bpy/ops/sculpt_curves/__init__.pyi +4 -4
- bpy/ops/sequencer/__init__.pyi +142 -100
- bpy/ops/sound/__init__.pyi +7 -7
- bpy/ops/spreadsheet/__init__.pyi +13 -7
- bpy/ops/surface/__init__.pyi +6 -6
- bpy/ops/text/__init__.pyi +73 -43
- bpy/ops/text_editor/__init__.pyi +1 -1
- bpy/ops/texture/__init__.pyi +8 -4
- bpy/ops/transform/__init__.pyi +29 -27
- bpy/ops/ui/__init__.pyi +42 -34
- bpy/ops/uilist/__init__.pyi +3 -3
- bpy/ops/uv/__init__.pyi +59 -49
- bpy/ops/view2d/__init__.pyi +14 -14
- bpy/ops/view3d/__init__.pyi +87 -67
- bpy/ops/wm/__init__.pyi +138 -116
- bpy/ops/workspace/__init__.pyi +11 -7
- bpy/ops/world/__init__.pyi +2 -2
- bpy/props/__init__.pyi +16 -13
- bpy/types/__init__.pyi +1220 -1157
- bpy/utils/__init__.pyi +23 -23
- bpy/utils/previews/__init__.pyi +3 -3
- bpy_extras/anim_utils/__init__.pyi +7 -7
- bpy_extras/bmesh_utils/__init__.pyi +1 -1
- bpy_extras/id_map_utils/__init__.pyi +3 -3
- bpy_extras/io_utils/__init__.pyi +14 -12
- bpy_extras/keyconfig_utils/__init__.pyi +3 -3
- bpy_extras/mesh_utils/__init__.pyi +2 -2
- bpy_extras/node_shader_utils/__init__.pyi +63 -63
- bpy_extras/node_utils/__init__.pyi +3 -3
- bpy_extras/object_utils/__init__.pyi +4 -4
- bpy_extras/wm_utils/progress_report/__init__.pyi +10 -10
- bpy_types/__init__.pyi +4 -4
- console_python/__init__.pyi +7 -7
- console_shell/__init__.pyi +5 -5
- {fake_bpy_module-20250603.dist-info → fake_bpy_module-20250606.dist-info}/METADATA +1 -1
- fake_bpy_module-20250606.dist-info/RECORD +367 -0
- freestyle/chainingiterators/__init__.pyi +35 -33
- freestyle/functions/__init__.pyi +55 -55
- freestyle/predicates/__init__.pyi +8 -8
- freestyle/shaders/__init__.pyi +79 -75
- freestyle/types/__init__.pyi +146 -142
- freestyle/utils/ContextFunctions/__init__.pyi +3 -1
- freestyle/utils/__init__.pyi +25 -25
- gpu/matrix/__init__.pyi +14 -14
- gpu/select/__init__.pyi +1 -1
- gpu/shader/__init__.pyi +1 -1
- gpu/state/__init__.pyi +19 -19
- gpu/types/__init__.pyi +50 -44
- gpu_extras/presets/__init__.pyi +2 -2
- graphviz_export/__init__.pyi +2 -2
- idprop/types/__init__.pyi +9 -9
- imbuf/__init__.pyi +3 -1
- imbuf/types/__init__.pyi +3 -3
- keyingsets_builtins/__init__.pyi +26 -26
- keyingsets_utils/__init__.pyi +14 -14
- mathutils/__init__.pyi +61 -53
- mathutils/bvhtree/__init__.pyi +4 -4
- mathutils/kdtree/__init__.pyi +3 -3
- mathutils/noise/__init__.pyi +1 -1
- nodeitems_builtins/__init__.pyi +4 -4
- nodeitems_utils/__init__.pyi +9 -9
- rna_info/__init__.pyi +25 -25
- rna_keymap_ui/__init__.pyi +6 -6
- rna_prop_ui/__init__.pyi +12 -12
- rna_xml/__init__.pyi +6 -6
- fake_bpy_module-20250603.dist-info/RECORD +0 -367
- {fake_bpy_module-20250603.dist-info → fake_bpy_module-20250606.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20250603.dist-info → fake_bpy_module-20250606.dist-info}/top_level.txt +0 -0
bmesh/types/__init__.pyi
CHANGED
|
@@ -27,10 +27,10 @@ import bpy.types
|
|
|
27
27
|
import mathutils
|
|
28
28
|
|
|
29
29
|
class BMDeformVert:
|
|
30
|
-
def clear(self):
|
|
30
|
+
def clear(self) -> None:
|
|
31
31
|
"""Clears all weights."""
|
|
32
32
|
|
|
33
|
-
def get(self, key: int, default: typing.Any | None = None):
|
|
33
|
+
def get(self, key: int, default: typing.Any | None = None) -> None:
|
|
34
34
|
"""Returns the deform weight matching the key or default
|
|
35
35
|
when not found (matches Python's dictionary function of the same name).
|
|
36
36
|
|
|
@@ -195,14 +195,14 @@ class BMEdge:
|
|
|
195
195
|
:rtype: mathutils.Vector
|
|
196
196
|
"""
|
|
197
197
|
|
|
198
|
-
def copy_from(self, other: typing_extensions.Self):
|
|
198
|
+
def copy_from(self, other: typing_extensions.Self) -> None:
|
|
199
199
|
"""Copy values from another element of matching type.
|
|
200
200
|
|
|
201
201
|
:param other:
|
|
202
202
|
:type other: typing_extensions.Self
|
|
203
203
|
"""
|
|
204
204
|
|
|
205
|
-
def hide_set(self, hide: bool):
|
|
205
|
+
def hide_set(self, hide: bool) -> None:
|
|
206
206
|
"""Set the hide state.
|
|
207
207
|
This is different from the hide attribute because it updates the selection and hide state of associated geometry.
|
|
208
208
|
|
|
@@ -210,7 +210,7 @@ class BMEdge:
|
|
|
210
210
|
:type hide: bool
|
|
211
211
|
"""
|
|
212
212
|
|
|
213
|
-
def normal_update(self):
|
|
213
|
+
def normal_update(self) -> None:
|
|
214
214
|
"""Update normals of all connected faces and the edge verts."""
|
|
215
215
|
|
|
216
216
|
def other_vert(self, vert: BMVert) -> BMVert | None:
|
|
@@ -222,7 +222,7 @@ class BMEdge:
|
|
|
222
222
|
:rtype: BMVert | None
|
|
223
223
|
"""
|
|
224
224
|
|
|
225
|
-
def select_set(self, select: bool):
|
|
225
|
+
def select_set(self, select: bool) -> None:
|
|
226
226
|
"""Set the selection.
|
|
227
227
|
This is different from the select attribute because it updates the selection state of associated geometry.
|
|
228
228
|
|
|
@@ -243,7 +243,7 @@ class BMEdge:
|
|
|
243
243
|
|
|
244
244
|
def __setitem__[_GenericType1](
|
|
245
245
|
self, key: BMLayerItem[_GenericType1], value: _GenericType1
|
|
246
|
-
):
|
|
246
|
+
) -> None:
|
|
247
247
|
"""
|
|
248
248
|
|
|
249
249
|
:param key:
|
|
@@ -252,7 +252,7 @@ class BMEdge:
|
|
|
252
252
|
:type value: _GenericType1
|
|
253
253
|
"""
|
|
254
254
|
|
|
255
|
-
def __delitem__[_GenericType1](self, key: BMLayerItem[_GenericType1]):
|
|
255
|
+
def __delitem__[_GenericType1](self, key: BMLayerItem[_GenericType1]) -> None:
|
|
256
256
|
"""
|
|
257
257
|
|
|
258
258
|
:param key:
|
|
@@ -266,7 +266,7 @@ class BMEdgeSeq:
|
|
|
266
266
|
:type: BMLayerAccessEdge
|
|
267
267
|
"""
|
|
268
268
|
|
|
269
|
-
def ensure_lookup_table(self):
|
|
269
|
+
def ensure_lookup_table(self) -> None:
|
|
270
270
|
"""Ensure internal data needed for int subscription is initialized with verts/edges/faces, eg bm.verts[index].This needs to be called again after adding/removing data in this sequence."""
|
|
271
271
|
|
|
272
272
|
def get(self, verts: collections.abc.Sequence[BMVert], fallback=None) -> BMEdge:
|
|
@@ -279,7 +279,7 @@ class BMEdgeSeq:
|
|
|
279
279
|
:rtype: BMEdge
|
|
280
280
|
"""
|
|
281
281
|
|
|
282
|
-
def index_update(self):
|
|
282
|
+
def index_update(self) -> None:
|
|
283
283
|
"""Initialize the index values of this sequence.This is the equivalent of looping over all elements and assigning the index values."""
|
|
284
284
|
|
|
285
285
|
def new(
|
|
@@ -295,7 +295,7 @@ class BMEdgeSeq:
|
|
|
295
295
|
:rtype: BMEdge
|
|
296
296
|
"""
|
|
297
297
|
|
|
298
|
-
def remove(self, edge: BMEdge):
|
|
298
|
+
def remove(self, edge: BMEdge) -> None:
|
|
299
299
|
"""Remove an edge.
|
|
300
300
|
|
|
301
301
|
:param edge:
|
|
@@ -308,7 +308,7 @@ class BMEdgeSeq:
|
|
|
308
308
|
| collections.abc.Callable[[BMVert | BMEdge | BMFace], int]
|
|
309
309
|
| None = None,
|
|
310
310
|
reverse: bool = False,
|
|
311
|
-
):
|
|
311
|
+
) -> None:
|
|
312
312
|
"""Sort the elements of this sequence, using an optional custom sort key.
|
|
313
313
|
Indices of elements are not changed, `BMElemSeq.index_update` can be used for that.
|
|
314
314
|
|
|
@@ -361,28 +361,28 @@ class BMEditSelSeq:
|
|
|
361
361
|
:type: BMEdge | BMFace | BMVert
|
|
362
362
|
"""
|
|
363
363
|
|
|
364
|
-
def add(self, element):
|
|
364
|
+
def add(self, element) -> None:
|
|
365
365
|
"""Add an element to the selection history (no action taken if its already added).
|
|
366
366
|
|
|
367
367
|
:param element:
|
|
368
368
|
"""
|
|
369
369
|
|
|
370
|
-
def clear(self):
|
|
370
|
+
def clear(self) -> None:
|
|
371
371
|
"""Empties the selection history."""
|
|
372
372
|
|
|
373
|
-
def discard(self, element):
|
|
373
|
+
def discard(self, element) -> None:
|
|
374
374
|
"""Discard an element from the selection history.Like remove but doesn't raise an error when the elements not in the selection list.
|
|
375
375
|
|
|
376
376
|
:param element:
|
|
377
377
|
"""
|
|
378
378
|
|
|
379
|
-
def remove(self, element):
|
|
379
|
+
def remove(self, element) -> None:
|
|
380
380
|
"""Remove an element from the selection history.
|
|
381
381
|
|
|
382
382
|
:param element:
|
|
383
383
|
"""
|
|
384
384
|
|
|
385
|
-
def validate(self):
|
|
385
|
+
def validate(self) -> None:
|
|
386
386
|
"""Ensures all elements in the selection history are selected."""
|
|
387
387
|
|
|
388
388
|
class BMElemSeq[_GenericType1]:
|
|
@@ -391,7 +391,7 @@ class BMElemSeq[_GenericType1]:
|
|
|
391
391
|
there are also functions to create/remove items.
|
|
392
392
|
"""
|
|
393
393
|
|
|
394
|
-
def index_update(self):
|
|
394
|
+
def index_update(self) -> None:
|
|
395
395
|
"""Initialize the index values of this sequence.This is the equivalent of looping over all elements and assigning the index values."""
|
|
396
396
|
|
|
397
397
|
@typing.overload
|
|
@@ -571,14 +571,16 @@ class BMFace:
|
|
|
571
571
|
:rtype: typing_extensions.Self
|
|
572
572
|
"""
|
|
573
573
|
|
|
574
|
-
def copy_from(self, other: typing_extensions.Self):
|
|
574
|
+
def copy_from(self, other: typing_extensions.Self) -> None:
|
|
575
575
|
"""Copy values from another element of matching type.
|
|
576
576
|
|
|
577
577
|
:param other:
|
|
578
578
|
:type other: typing_extensions.Self
|
|
579
579
|
"""
|
|
580
580
|
|
|
581
|
-
def copy_from_face_interp(
|
|
581
|
+
def copy_from_face_interp(
|
|
582
|
+
self, face: typing_extensions.Self, vert: bool = True
|
|
583
|
+
) -> None:
|
|
582
584
|
"""Interpolate the customdata from another face onto this one (faces should overlap).
|
|
583
585
|
|
|
584
586
|
:param face: The face to interpolate data from.
|
|
@@ -587,7 +589,7 @@ class BMFace:
|
|
|
587
589
|
:type vert: bool
|
|
588
590
|
"""
|
|
589
591
|
|
|
590
|
-
def hide_set(self, hide: bool):
|
|
592
|
+
def hide_set(self, hide: bool) -> None:
|
|
591
593
|
"""Set the hide state.
|
|
592
594
|
This is different from the hide attribute because it updates the selection and hide state of associated geometry.
|
|
593
595
|
|
|
@@ -595,16 +597,16 @@ class BMFace:
|
|
|
595
597
|
:type hide: bool
|
|
596
598
|
"""
|
|
597
599
|
|
|
598
|
-
def normal_flip(self):
|
|
600
|
+
def normal_flip(self) -> None:
|
|
599
601
|
"""Reverses winding of a face, which flips its normal."""
|
|
600
602
|
|
|
601
|
-
def normal_update(self):
|
|
603
|
+
def normal_update(self) -> None:
|
|
602
604
|
"""Update face normal based on the positions of the face verts.
|
|
603
605
|
This does not update the normals of face verts.
|
|
604
606
|
|
|
605
607
|
"""
|
|
606
608
|
|
|
607
|
-
def select_set(self, select: bool):
|
|
609
|
+
def select_set(self, select: bool) -> None:
|
|
608
610
|
"""Set the selection.
|
|
609
611
|
This is different from the select attribute because it updates the selection state of associated geometry.
|
|
610
612
|
|
|
@@ -625,7 +627,7 @@ class BMFace:
|
|
|
625
627
|
|
|
626
628
|
def __setitem__[_GenericType1](
|
|
627
629
|
self, key: BMLayerItem[_GenericType1], value: _GenericType1
|
|
628
|
-
):
|
|
630
|
+
) -> None:
|
|
629
631
|
"""
|
|
630
632
|
|
|
631
633
|
:param key:
|
|
@@ -634,7 +636,7 @@ class BMFace:
|
|
|
634
636
|
:type value: _GenericType1
|
|
635
637
|
"""
|
|
636
638
|
|
|
637
|
-
def __delitem__[_GenericType1](self, key: BMLayerItem[_GenericType1]):
|
|
639
|
+
def __delitem__[_GenericType1](self, key: BMLayerItem[_GenericType1]) -> None:
|
|
638
640
|
"""
|
|
639
641
|
|
|
640
642
|
:param key:
|
|
@@ -654,7 +656,7 @@ class BMFaceSeq:
|
|
|
654
656
|
:type: BMLayerAccessFace
|
|
655
657
|
"""
|
|
656
658
|
|
|
657
|
-
def ensure_lookup_table(self):
|
|
659
|
+
def ensure_lookup_table(self) -> None:
|
|
658
660
|
"""Ensure internal data needed for int subscription is initialized with verts/edges/faces, eg bm.verts[index].This needs to be called again after adding/removing data in this sequence."""
|
|
659
661
|
|
|
660
662
|
def get(self, verts: collections.abc.Sequence[BMVert], fallback=None) -> BMFace:
|
|
@@ -667,7 +669,7 @@ class BMFaceSeq:
|
|
|
667
669
|
:rtype: BMFace
|
|
668
670
|
"""
|
|
669
671
|
|
|
670
|
-
def index_update(self):
|
|
672
|
+
def index_update(self) -> None:
|
|
671
673
|
"""Initialize the index values of this sequence.This is the equivalent of looping over all elements and assigning the index values."""
|
|
672
674
|
|
|
673
675
|
def new(
|
|
@@ -683,7 +685,7 @@ class BMFaceSeq:
|
|
|
683
685
|
:rtype: BMFace
|
|
684
686
|
"""
|
|
685
687
|
|
|
686
|
-
def remove(self, face: BMFace):
|
|
688
|
+
def remove(self, face: BMFace) -> None:
|
|
687
689
|
"""Remove a face.
|
|
688
690
|
|
|
689
691
|
:param face:
|
|
@@ -696,7 +698,7 @@ class BMFaceSeq:
|
|
|
696
698
|
| collections.abc.Callable[[BMVert | BMEdge | BMFace], int]
|
|
697
699
|
| None = None,
|
|
698
700
|
reverse: bool = False,
|
|
699
|
-
):
|
|
701
|
+
) -> None:
|
|
700
702
|
"""Sort the elements of this sequence, using an optional custom sort key.
|
|
701
703
|
Indices of elements are not changed, `BMElemSeq.index_update` can be used for that.
|
|
702
704
|
|
|
@@ -1027,7 +1029,7 @@ class BMLayerCollection[_GenericType1]:
|
|
|
1027
1029
|
:rtype: BMLayerItem[_GenericType1]
|
|
1028
1030
|
"""
|
|
1029
1031
|
|
|
1030
|
-
def remove(self, layer: BMLayerItem[_GenericType1]):
|
|
1032
|
+
def remove(self, layer: BMLayerItem[_GenericType1]) -> None:
|
|
1031
1033
|
"""Remove a layer
|
|
1032
1034
|
|
|
1033
1035
|
:param layer: The layer to remove.
|
|
@@ -1058,7 +1060,7 @@ class BMLayerItem[_GenericType1]:
|
|
|
1058
1060
|
:type: str
|
|
1059
1061
|
"""
|
|
1060
1062
|
|
|
1061
|
-
def copy_from(self, other: typing_extensions.Self):
|
|
1063
|
+
def copy_from(self, other: typing_extensions.Self) -> None:
|
|
1062
1064
|
"""Return a copy of the layer
|
|
1063
1065
|
|
|
1064
1066
|
:param other: Another layer to copy from.
|
|
@@ -1164,7 +1166,7 @@ class BMLoop:
|
|
|
1164
1166
|
:rtype: mathutils.Vector
|
|
1165
1167
|
"""
|
|
1166
1168
|
|
|
1167
|
-
def copy_from(self, other: typing_extensions.Self):
|
|
1169
|
+
def copy_from(self, other: typing_extensions.Self) -> None:
|
|
1168
1170
|
"""Copy values from another element of matching type.
|
|
1169
1171
|
|
|
1170
1172
|
:param other:
|
|
@@ -1173,7 +1175,7 @@ class BMLoop:
|
|
|
1173
1175
|
|
|
1174
1176
|
def copy_from_face_interp(
|
|
1175
1177
|
self, face: BMFace, vert: bool = True, multires: bool = True
|
|
1176
|
-
):
|
|
1178
|
+
) -> None:
|
|
1177
1179
|
"""Interpolate the customdata from a face onto this loop (the loops vert should overlap the face).
|
|
1178
1180
|
|
|
1179
1181
|
:param face: The face to interpolate data from.
|
|
@@ -1197,7 +1199,7 @@ class BMLoop:
|
|
|
1197
1199
|
|
|
1198
1200
|
def __setitem__[_GenericType1](
|
|
1199
1201
|
self, key: BMLayerItem[_GenericType1], value: _GenericType1
|
|
1200
|
-
):
|
|
1202
|
+
) -> None:
|
|
1201
1203
|
"""
|
|
1202
1204
|
|
|
1203
1205
|
:param key:
|
|
@@ -1206,7 +1208,7 @@ class BMLoop:
|
|
|
1206
1208
|
:type value: _GenericType1
|
|
1207
1209
|
"""
|
|
1208
1210
|
|
|
1209
|
-
def __delitem__[_GenericType1](self, key: BMLayerItem[_GenericType1]):
|
|
1211
|
+
def __delitem__[_GenericType1](self, key: BMLayerItem[_GenericType1]) -> None:
|
|
1210
1212
|
"""
|
|
1211
1213
|
|
|
1212
1214
|
:param key:
|
|
@@ -1379,14 +1381,14 @@ class BMVert:
|
|
|
1379
1381
|
:rtype: float
|
|
1380
1382
|
"""
|
|
1381
1383
|
|
|
1382
|
-
def copy_from(self, other: typing_extensions.Self):
|
|
1384
|
+
def copy_from(self, other: typing_extensions.Self) -> None:
|
|
1383
1385
|
"""Copy values from another element of matching type.
|
|
1384
1386
|
|
|
1385
1387
|
:param other:
|
|
1386
1388
|
:type other: typing_extensions.Self
|
|
1387
1389
|
"""
|
|
1388
1390
|
|
|
1389
|
-
def copy_from_face_interp(self, face: BMFace):
|
|
1391
|
+
def copy_from_face_interp(self, face: BMFace) -> None:
|
|
1390
1392
|
"""Interpolate the customdata from a face onto this loop (the loops vert should overlap the face).
|
|
1391
1393
|
|
|
1392
1394
|
:param face: The face to interpolate data from.
|
|
@@ -1395,7 +1397,7 @@ class BMVert:
|
|
|
1395
1397
|
|
|
1396
1398
|
def copy_from_vert_interp(
|
|
1397
1399
|
self, vert_pair: collections.abc.Sequence[BMVert], fac: float
|
|
1398
|
-
):
|
|
1400
|
+
) -> None:
|
|
1399
1401
|
"""Interpolate the customdata from a vert between 2 other verts.
|
|
1400
1402
|
|
|
1401
1403
|
:param vert_pair: The verts between which to interpolate data from.
|
|
@@ -1404,7 +1406,7 @@ class BMVert:
|
|
|
1404
1406
|
:type fac: float
|
|
1405
1407
|
"""
|
|
1406
1408
|
|
|
1407
|
-
def hide_set(self, hide: bool):
|
|
1409
|
+
def hide_set(self, hide: bool) -> None:
|
|
1408
1410
|
"""Set the hide state.
|
|
1409
1411
|
This is different from the hide attribute because it updates the selection and hide state of associated geometry.
|
|
1410
1412
|
|
|
@@ -1412,13 +1414,13 @@ class BMVert:
|
|
|
1412
1414
|
:type hide: bool
|
|
1413
1415
|
"""
|
|
1414
1416
|
|
|
1415
|
-
def normal_update(self):
|
|
1417
|
+
def normal_update(self) -> None:
|
|
1416
1418
|
"""Update vertex normal.
|
|
1417
1419
|
This does not update the normals of adjoining faces.
|
|
1418
1420
|
|
|
1419
1421
|
"""
|
|
1420
1422
|
|
|
1421
|
-
def select_set(self, select: bool):
|
|
1423
|
+
def select_set(self, select: bool) -> None:
|
|
1422
1424
|
"""Set the selection.
|
|
1423
1425
|
This is different from the select attribute because it updates the selection state of associated geometry.
|
|
1424
1426
|
|
|
@@ -1439,7 +1441,7 @@ class BMVert:
|
|
|
1439
1441
|
|
|
1440
1442
|
def __setitem__[_GenericType1](
|
|
1441
1443
|
self, key: BMLayerItem[_GenericType1], value: _GenericType1
|
|
1442
|
-
):
|
|
1444
|
+
) -> None:
|
|
1443
1445
|
"""
|
|
1444
1446
|
|
|
1445
1447
|
:param key:
|
|
@@ -1448,7 +1450,7 @@ class BMVert:
|
|
|
1448
1450
|
:type value: _GenericType1
|
|
1449
1451
|
"""
|
|
1450
1452
|
|
|
1451
|
-
def __delitem__[_GenericType1](self, key: BMLayerItem[_GenericType1]):
|
|
1453
|
+
def __delitem__[_GenericType1](self, key: BMLayerItem[_GenericType1]) -> None:
|
|
1452
1454
|
"""
|
|
1453
1455
|
|
|
1454
1456
|
:param key:
|
|
@@ -1462,10 +1464,10 @@ class BMVertSeq:
|
|
|
1462
1464
|
:type: BMLayerAccessVert
|
|
1463
1465
|
"""
|
|
1464
1466
|
|
|
1465
|
-
def ensure_lookup_table(self):
|
|
1467
|
+
def ensure_lookup_table(self) -> None:
|
|
1466
1468
|
"""Ensure internal data needed for int subscription is initialized with verts/edges/faces, eg bm.verts[index].This needs to be called again after adding/removing data in this sequence."""
|
|
1467
1469
|
|
|
1468
|
-
def index_update(self):
|
|
1470
|
+
def index_update(self) -> None:
|
|
1469
1471
|
"""Initialize the index values of this sequence.This is the equivalent of looping over all elements and assigning the index values."""
|
|
1470
1472
|
|
|
1471
1473
|
def new(
|
|
@@ -1483,7 +1485,7 @@ class BMVertSeq:
|
|
|
1483
1485
|
:rtype: BMVert
|
|
1484
1486
|
"""
|
|
1485
1487
|
|
|
1486
|
-
def remove(self, vert: BMVert):
|
|
1488
|
+
def remove(self, vert: BMVert) -> None:
|
|
1487
1489
|
"""Remove a vert.
|
|
1488
1490
|
|
|
1489
1491
|
:param vert:
|
|
@@ -1496,7 +1498,7 @@ class BMVertSeq:
|
|
|
1496
1498
|
| collections.abc.Callable[[BMVert | BMEdge | BMFace], int]
|
|
1497
1499
|
| None = None,
|
|
1498
1500
|
reverse: bool = False,
|
|
1499
|
-
):
|
|
1501
|
+
) -> None:
|
|
1500
1502
|
"""Sort the elements of this sequence, using an optional custom sort key.
|
|
1501
1503
|
Indices of elements are not changed, `BMElemSeq.index_update` can be used for that.
|
|
1502
1504
|
|
|
@@ -1607,7 +1609,7 @@ class BMesh:
|
|
|
1607
1609
|
:rtype: float
|
|
1608
1610
|
"""
|
|
1609
1611
|
|
|
1610
|
-
def clear(self):
|
|
1612
|
+
def clear(self) -> None:
|
|
1611
1613
|
"""Clear all mesh data."""
|
|
1612
1614
|
|
|
1613
1615
|
def copy(self) -> typing_extensions.Self:
|
|
@@ -1617,7 +1619,7 @@ class BMesh:
|
|
|
1617
1619
|
:rtype: typing_extensions.Self
|
|
1618
1620
|
"""
|
|
1619
1621
|
|
|
1620
|
-
def free(self):
|
|
1622
|
+
def free(self) -> None:
|
|
1621
1623
|
"""Explicitly free the BMesh data from memory, causing exceptions on further access."""
|
|
1622
1624
|
|
|
1623
1625
|
def from_mesh(
|
|
@@ -1627,7 +1629,7 @@ class BMesh:
|
|
|
1627
1629
|
vertex_normals: bool = True,
|
|
1628
1630
|
use_shape_key: bool = False,
|
|
1629
1631
|
shape_key_index: int = 0,
|
|
1630
|
-
):
|
|
1632
|
+
) -> None:
|
|
1631
1633
|
"""Initialize this bmesh from existing mesh datablock.
|
|
1632
1634
|
|
|
1633
1635
|
:param mesh: The mesh data to load.
|
|
@@ -1649,7 +1651,7 @@ class BMesh:
|
|
|
1649
1651
|
cage: bool = False,
|
|
1650
1652
|
face_normals: bool = True,
|
|
1651
1653
|
vertex_normals: bool = True,
|
|
1652
|
-
):
|
|
1654
|
+
) -> None:
|
|
1653
1655
|
"""Initialize this bmesh from existing object data-block (only meshes are currently supported).
|
|
1654
1656
|
|
|
1655
1657
|
:param object: The object data to load.
|
|
@@ -1664,20 +1666,20 @@ class BMesh:
|
|
|
1664
1666
|
:type vertex_normals: bool
|
|
1665
1667
|
"""
|
|
1666
1668
|
|
|
1667
|
-
def normal_update(self):
|
|
1669
|
+
def normal_update(self) -> None:
|
|
1668
1670
|
"""Update normals of mesh faces and verts."""
|
|
1669
1671
|
|
|
1670
|
-
def select_flush(self, select: bool):
|
|
1672
|
+
def select_flush(self, select: bool) -> None:
|
|
1671
1673
|
"""Flush selection, independent of the current selection mode.
|
|
1672
1674
|
|
|
1673
1675
|
:param select: flush selection or de-selected elements.
|
|
1674
1676
|
:type select: bool
|
|
1675
1677
|
"""
|
|
1676
1678
|
|
|
1677
|
-
def select_flush_mode(self):
|
|
1679
|
+
def select_flush_mode(self) -> None:
|
|
1678
1680
|
"""flush selection based on the current mode current `BMesh.select_mode`."""
|
|
1679
1681
|
|
|
1680
|
-
def to_mesh(self, mesh: bpy.types.Mesh):
|
|
1682
|
+
def to_mesh(self, mesh: bpy.types.Mesh) -> None:
|
|
1681
1683
|
"""Writes this BMesh data into an existing Mesh datablock.
|
|
1682
1684
|
|
|
1683
1685
|
:param mesh: The mesh data to write into.
|
|
@@ -1689,7 +1691,7 @@ class BMesh:
|
|
|
1689
1691
|
matrix: collections.abc.Sequence[collections.abc.Sequence[float]]
|
|
1690
1692
|
| mathutils.Matrix,
|
|
1691
1693
|
filter=None,
|
|
1692
|
-
):
|
|
1694
|
+
) -> None:
|
|
1693
1695
|
"""Transform the mesh (optionally filtering flagged data only).
|
|
1694
1696
|
|
|
1695
1697
|
:param matrix: 4x4x transform matrix.
|
bmesh/utils/__init__.pyi
CHANGED
|
@@ -36,7 +36,7 @@ def edge_split(
|
|
|
36
36
|
:rtype: tuple[bmesh.types.BMEdge, bmesh.types.BMVert]
|
|
37
37
|
"""
|
|
38
38
|
|
|
39
|
-
def face_flip(faces):
|
|
39
|
+
def face_flip(faces) -> None:
|
|
40
40
|
"""Flip the faces direction."""
|
|
41
41
|
|
|
42
42
|
def face_join(faces: bmesh.types.BMFace, remove: bool = True) -> bmesh.types.BMFace:
|
|
@@ -163,7 +163,7 @@ def vert_separate(
|
|
|
163
163
|
:rtype: tuple[bmesh.types.BMVert, ...]
|
|
164
164
|
"""
|
|
165
165
|
|
|
166
|
-
def vert_splice(vert: bmesh.types.BMVert, vert_target: bmesh.types.BMVert):
|
|
166
|
+
def vert_splice(vert: bmesh.types.BMVert, vert_target: bmesh.types.BMVert) -> None:
|
|
167
167
|
"""Splice vert into vert_target.
|
|
168
168
|
|
|
169
169
|
:param vert: The vertex to be removed.
|
bpy/app/__init__.pyi
CHANGED
|
@@ -22,14 +22,14 @@ from . import icons as icons
|
|
|
22
22
|
from . import timers as timers
|
|
23
23
|
from . import translations as translations
|
|
24
24
|
|
|
25
|
-
def help_text(all: bool | None = False):
|
|
25
|
+
def help_text(all: bool | None = False) -> None:
|
|
26
26
|
"""Return the help text as a string.
|
|
27
27
|
|
|
28
28
|
:param all: Return all arguments, even those which aren't available for the current platform.
|
|
29
29
|
:type all: bool | None
|
|
30
30
|
"""
|
|
31
31
|
|
|
32
|
-
def is_job_running(job_type: bpy.stub_internal.rna_enums.WmJobTypeItems):
|
|
32
|
+
def is_job_running(job_type: bpy.stub_internal.rna_enums.WmJobTypeItems) -> None:
|
|
33
33
|
"""Check whether a job of the given type is running.
|
|
34
34
|
|
|
35
35
|
:param job_type: job type in `rna_enum_wm_job_type_items`.
|
|
@@ -98,7 +98,7 @@ build_linkflags: typing.Any
|
|
|
98
98
|
"""
|
|
99
99
|
|
|
100
100
|
build_options: typing.Any
|
|
101
|
-
""" Constant value bpy.app.build_options(bullet=True, codec_avi=False, codec_ffmpeg=True, codec_sndfile=True, compositor_cpu=True, cycles=True, cycles_osl=True, freestyle=True, image_cineon=True, image_dds=True, image_hdr=True, image_openexr=True, image_openjpeg=True, image_tiff=True, image_webp=True, input_ndof=True, audaspace=True, international=True, openal=True, opensubdiv=True, sdl=False, coreaudio=False, jack=False, pulseaudio=False, wasapi=False, libmv=True, mod_oceansim=True, mod_remesh=True, collada=True, io_wavefront_obj=True, io_ply=True, io_stl=True, io_fbx=True, io_gpencil=True, opencolorio=True, openmp=False, openvdb=True, alembic=True, usd=True, fluid=True, xr_openxr=True, potrace=True, pugixml=True, haru=True)
|
|
101
|
+
""" Constant value bpy.app.build_options(bullet=True, codec_avi=False, codec_ffmpeg=True, codec_sndfile=True, compositor_cpu=True, cycles=True, cycles_osl=True, freestyle=True, image_cineon=True, image_dds=True, image_hdr=True, image_openexr=True, image_openjpeg=True, image_tiff=True, image_webp=True, input_ndof=True, audaspace=True, international=True, openal=True, opensubdiv=True, sdl=False, coreaudio=False, jack=False, pulseaudio=False, wasapi=False, libmv=True, mod_oceansim=True, mod_remesh=True, collada=True, io_wavefront_obj=True, io_ply=True, io_stl=True, io_fbx=True, io_gpencil=True, opencolorio=True, openmp=False, openvdb=True, alembic=True, usd=True, fluid=True, xr_openxr=True, potrace=True, pugixml=True, haru=True, experimental_features=True)
|
|
102
102
|
"""
|
|
103
103
|
|
|
104
104
|
build_platform: typing.Any
|
|
@@ -190,7 +190,7 @@ factory_startup: typing.Any
|
|
|
190
190
|
"""
|
|
191
191
|
|
|
192
192
|
ffmpeg: typing.Any
|
|
193
|
-
""" Constant value bpy.app.ffmpeg(supported=True, avcodec_version=(
|
|
193
|
+
""" Constant value bpy.app.ffmpeg(supported=True, avcodec_version=(61, 19, 101), avcodec_version_string='61, 19, 101', avdevice_version=(61, 3, 100), avdevice_version_string='61, 3, 100', avformat_version=(61, 7, 100), avformat_version_string='61, 7, 100', avutil_version=(59, 39, 100), avutil_version_string='59, 39, 100', swscale_version=(8, 3, 100), swscale_version_string=' 8, 3, 100')
|
|
194
194
|
"""
|
|
195
195
|
|
|
196
196
|
module: typing.Any
|
|
@@ -202,7 +202,7 @@ ocio: typing.Any
|
|
|
202
202
|
"""
|
|
203
203
|
|
|
204
204
|
oiio: typing.Any
|
|
205
|
-
""" Constant value bpy.app.oiio(supported=True, version=(3, 0,
|
|
205
|
+
""" Constant value bpy.app.oiio(supported=True, version=(3, 0, 6), version_string=' 3, 0, 6')
|
|
206
206
|
"""
|
|
207
207
|
|
|
208
208
|
online_access: typing.Any
|
bpy/app/icons/__init__.pyi
CHANGED
bpy/app/timers/__init__.pyi
CHANGED
|
@@ -39,7 +39,7 @@ def register(
|
|
|
39
39
|
function: collections.abc.Callable[[], float | None],
|
|
40
40
|
first_interval: float | None = 0,
|
|
41
41
|
persistent: bool | None = False,
|
|
42
|
-
):
|
|
42
|
+
) -> None:
|
|
43
43
|
"""Add a new function that will be called after the specified amount of seconds.
|
|
44
44
|
The function gets no arguments and is expected to return either None or a float.
|
|
45
45
|
If None is returned, the timer will be unregistered.
|
|
@@ -54,7 +54,7 @@ def register(
|
|
|
54
54
|
:type persistent: bool | None
|
|
55
55
|
"""
|
|
56
56
|
|
|
57
|
-
def unregister(function: collections.abc.Callable[[], float | None]):
|
|
57
|
+
def unregister(function: collections.abc.Callable[[], float | None]) -> None:
|
|
58
58
|
"""Unregister timer.
|
|
59
59
|
|
|
60
60
|
:param function: Function to unregister.
|
|
@@ -61,14 +61,14 @@ import collections.abc
|
|
|
61
61
|
import typing_extensions
|
|
62
62
|
import numpy.typing as npt
|
|
63
63
|
|
|
64
|
-
def locale_explode(locale):
|
|
64
|
+
def locale_explode(locale) -> None:
|
|
65
65
|
"""Return all components and their combinations of the given ISO locale string.For non-complete locales, missing elements will be None.
|
|
66
66
|
|
|
67
67
|
:param locale: The ISO locale string to explode.
|
|
68
68
|
:return: A tuple (language, country, variant, language_country, language@variant).
|
|
69
69
|
"""
|
|
70
70
|
|
|
71
|
-
def pgettext(msgid: str | None, msgctxt: None | str | None = None):
|
|
71
|
+
def pgettext(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
72
72
|
"""Try to translate the given msgid (with optional msgctxt).
|
|
73
73
|
|
|
74
74
|
:param msgid: The string to translate.
|
|
@@ -78,7 +78,7 @@ def pgettext(msgid: str | None, msgctxt: None | str | None = None):
|
|
|
78
78
|
:return: The translated string (or msgid if no translation was found).
|
|
79
79
|
"""
|
|
80
80
|
|
|
81
|
-
def pgettext_data(msgid: str | None, msgctxt: None | str | None = None):
|
|
81
|
+
def pgettext_data(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
82
82
|
"""Try to translate the given msgid (with optional msgctxt), if new data name's translation is enabled.
|
|
83
83
|
|
|
84
84
|
:param msgid: The string to translate.
|
|
@@ -88,7 +88,7 @@ def pgettext_data(msgid: str | None, msgctxt: None | str | None = None):
|
|
|
88
88
|
:return: The translated string (or msgid if no translation was found).
|
|
89
89
|
"""
|
|
90
90
|
|
|
91
|
-
def pgettext_iface(msgid: str | None, msgctxt: None | str | None = None):
|
|
91
|
+
def pgettext_iface(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
92
92
|
"""Try to translate the given msgid (with optional msgctxt), if labels' translation is enabled.
|
|
93
93
|
|
|
94
94
|
:param msgid: The string to translate.
|
|
@@ -98,7 +98,7 @@ def pgettext_iface(msgid: str | None, msgctxt: None | str | None = None):
|
|
|
98
98
|
:return: The translated string (or msgid if no translation was found).
|
|
99
99
|
"""
|
|
100
100
|
|
|
101
|
-
def pgettext_n(msgid: str | None, msgctxt: None | str | None = None):
|
|
101
|
+
def pgettext_n(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
102
102
|
"""Extract the given msgid to translation files. This is a no-op function that will only mark the string to extract, but not perform the actual translation.
|
|
103
103
|
|
|
104
104
|
:param msgid: The string to extract.
|
|
@@ -108,7 +108,7 @@ def pgettext_n(msgid: str | None, msgctxt: None | str | None = None):
|
|
|
108
108
|
:return: The original string.
|
|
109
109
|
"""
|
|
110
110
|
|
|
111
|
-
def pgettext_rpt(msgid: str | None, msgctxt: None | str | None = None):
|
|
111
|
+
def pgettext_rpt(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
112
112
|
"""Try to translate the given msgid (with optional msgctxt), if reports' translation is enabled.
|
|
113
113
|
|
|
114
114
|
:param msgid: The string to translate.
|
|
@@ -118,7 +118,7 @@ def pgettext_rpt(msgid: str | None, msgctxt: None | str | None = None):
|
|
|
118
118
|
:return: The translated string (or msgid if no translation was found).
|
|
119
119
|
"""
|
|
120
120
|
|
|
121
|
-
def pgettext_tip(msgid: str | None, msgctxt: None | str | None = None):
|
|
121
|
+
def pgettext_tip(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
122
122
|
"""Try to translate the given msgid (with optional msgctxt), if tooltips' translation is enabled.
|
|
123
123
|
|
|
124
124
|
:param msgid: The string to translate.
|
|
@@ -130,7 +130,7 @@ def pgettext_tip(msgid: str | None, msgctxt: None | str | None = None):
|
|
|
130
130
|
|
|
131
131
|
def register(
|
|
132
132
|
module_name: str | None, translations_dict: dict[str, dict[str, str]] | None
|
|
133
|
-
):
|
|
133
|
+
) -> None:
|
|
134
134
|
"""Registers an addon's UI translations.
|
|
135
135
|
|
|
136
136
|
:param module_name: The name identifying the addon.
|
|
@@ -140,7 +140,7 @@ def register(
|
|
|
140
140
|
:type translations_dict: dict[str, dict[str, str]] | None
|
|
141
141
|
"""
|
|
142
142
|
|
|
143
|
-
def unregister(module_name: str | None):
|
|
143
|
+
def unregister(module_name: str | None) -> None:
|
|
144
144
|
"""Unregisters an addon's UI translations.
|
|
145
145
|
|
|
146
146
|
:param module_name: The name identifying the addon.
|
bpy/msgbus/__init__.pyi
CHANGED
|
@@ -50,12 +50,12 @@ import typing_extensions
|
|
|
50
50
|
import numpy.typing as npt
|
|
51
51
|
import bpy.types
|
|
52
52
|
|
|
53
|
-
def clear_by_owner(owner):
|
|
53
|
+
def clear_by_owner(owner) -> None:
|
|
54
54
|
"""Clear all subscribers using this owner."""
|
|
55
55
|
|
|
56
56
|
def publish_rna(
|
|
57
57
|
key: bpy.types.Property | bpy.types.Struct | tuple[bpy.types.Struct, str] | None,
|
|
58
|
-
):
|
|
58
|
+
) -> None:
|
|
59
59
|
"""Notify subscribers of changes to this property
|
|
60
60
|
(this typically doesn't need to be called explicitly since changes will automatically publish updates).
|
|
61
61
|
In some cases it may be useful to publish changes explicitly using more general keys.
|
|
@@ -75,7 +75,7 @@ def subscribe_rna(
|
|
|
75
75
|
args,
|
|
76
76
|
notify,
|
|
77
77
|
options=set(),
|
|
78
|
-
):
|
|
78
|
+
) -> None:
|
|
79
79
|
"""Register a message bus subscription. It will be cleared when another blend file is
|
|
80
80
|
loaded, or can be cleared explicitly via `bpy.msgbus.clear_by_owner`.
|
|
81
81
|
|