fake-bpy-module 20250612__py3-none-any.whl → 20260118__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.
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_calltip/__init__.pyi +0 -13
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_import/__init__.pyi +0 -5
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_namespace/__init__.pyi +0 -11
- {bl_console_utils → _bl_console_utils}/autocomplete/intellisense/__init__.pyi +0 -10
- {bl_i18n_utils → _bl_i18n_utils}/__init__.pyi +1 -0
- {bl_i18n_utils → _bl_i18n_utils}/bl_extract_messages/__init__.pyi +1 -0
- {bl_i18n_utils → _bl_i18n_utils}/settings/__init__.pyi +3 -1
- {bl_i18n_utils → _bl_i18n_utils}/utils/__init__.pyi +4 -4
- _bl_i18n_utils/utils_spell_check/__init__.pyi +22 -0
- {bl_ui_utils → _bl_ui_utils}/__init__.pyi +1 -0
- _blendfile_header/__init__.pyi +48 -0
- _bpy_internal/__init__.pyi +4 -1
- _bpy_internal/assets/__init__.pyi +5 -0
- _bpy_internal/assets/remote_library_listing/__init__.pyi +5 -0
- _bpy_internal/assets/remote_library_listing/blender_asset_library_openapi/__init__.pyi +13 -0
- _bpy_internal/disk_file_hash_service/__init__.pyi +19 -0
- _bpy_internal/disk_file_hash_service/backend_sqlite/__init__.pyi +48 -0
- _bpy_internal/disk_file_hash_service/hash_service/__init__.pyi +64 -0
- _bpy_internal/disk_file_hash_service/types/__init__.pyi +53 -0
- _bpy_internal/extensions/wheel_manager/__init__.pyi +1 -1
- _bpy_internal/filesystem/__init__.pyi +5 -0
- _bpy_internal/filesystem/locking/__init__.pyi +28 -0
- _bpy_internal/grease_pencil/stroke/__init__.pyi +2 -2
- _bpy_internal/platform/__init__.pyi +5 -0
- _bpy_types/__init__.pyi +1592 -0
- {keyingsets_utils → _keyingsets_utils}/__init__.pyi +2 -0
- {rna_info → _rna_info}/__init__.pyi +4 -2
- addon_utils/__init__.pyi +0 -13
- aud/__init__.pyi +122 -145
- bl_app_templates_system/Storyboarding/__init__.pyi +11 -0
- bl_app_templates_system/__init__.pyi +5 -0
- bl_app_templates_system/py.typed +0 -0
- bl_math/__init__.pyi +3 -13
- bl_operators/__init__.pyi +1 -0
- bl_operators/add_mesh_torus/__init__.pyi +2 -3
- bl_operators/anim/__init__.pyi +62 -38
- bl_operators/assets/__init__.pyi +4 -9
- bl_operators/bone_selection_sets/__init__.pyi +15 -42
- bl_operators/clip/__init__.pyi +12 -31
- bl_operators/connect_to_output/__init__.pyi +2 -3
- bl_operators/console/__init__.pyi +6 -15
- bl_operators/constraint/__init__.pyi +6 -13
- bl_operators/copy_global_transform/__init__.pyi +261 -0
- bl_operators/file/__init__.pyi +6 -11
- bl_operators/freestyle/__init__.pyi +5 -12
- bl_operators/geometry_nodes/__init__.pyi +5 -12
- bl_operators/grease_pencil/__init__.pyi +2 -3
- bl_operators/image/__init__.pyi +6 -15
- bl_operators/image_as_planes/__init__.pyi +3 -10
- bl_operators/mesh/__init__.pyi +3 -49
- bl_operators/node/__init__.pyi +294 -73
- bl_operators/object/__init__.pyi +17 -53
- bl_operators/object_align/__init__.pyi +2 -3
- bl_operators/object_quick_effects/__init__.pyi +5 -12
- bl_operators/object_randomize_transform/__init__.pyi +2 -3
- bl_operators/presets/__init__.pyi +27 -76
- bl_operators/rigidbody/__init__.pyi +4 -9
- bl_operators/screen_play_rendered_anim/__init__.pyi +2 -3
- bl_operators/sequencer/__init__.pyi +12 -27
- bl_operators/spreadsheet/__init__.pyi +2 -3
- bl_operators/userpref/__init__.pyi +26 -75
- bl_operators/uvcalc_follow_active/__init__.pyi +3 -4
- bl_operators/uvcalc_lightmap/__init__.pyi +3 -4
- bl_operators/uvcalc_transform/__init__.pyi +26 -16
- bl_operators/vertexpaint_dirt/__init__.pyi +2 -3
- bl_operators/view3d/__init__.pyi +9 -24
- bl_operators/wm/__init__.pyi +48 -139
- bl_operators/world/__init__.pyi +3 -4
- bl_ui/__init__.pyi +7 -7
- bl_ui/anim/__init__.pyi +2 -3
- bl_ui/asset_shelf/__init__.pyi +2 -3
- bl_ui/generic_ui_list/__init__.pyi +4 -19
- bl_ui/node_add_menu/__init__.pyi +263 -7
- bl_ui/node_add_menu_compositor/__init__.pyi +96 -79
- bl_ui/node_add_menu_geometry/__init__.pyi +309 -270
- bl_ui/node_add_menu_shader/__init__.pyi +49 -49
- bl_ui/node_add_menu_texture/__init__.pyi +17 -62
- bl_ui/properties_collection/__init__.pyi +9 -22
- bl_ui/properties_constraint/__init__.pyi +129 -282
- bl_ui/properties_data_armature/__init__.pyi +22 -57
- bl_ui/properties_data_bone/__init__.pyi +12 -31
- bl_ui/properties_data_camera/__init__.pyi +18 -47
- bl_ui/properties_data_curve/__init__.pyi +18 -47
- bl_ui/properties_data_curves/__init__.pyi +11 -26
- bl_ui/properties_data_empty/__init__.pyi +3 -6
- bl_ui/properties_data_grease_pencil/__init__.pyi +23 -62
- bl_ui/properties_data_lattice/__init__.pyi +7 -14
- bl_ui/properties_data_light/__init__.pyi +13 -32
- bl_ui/properties_data_lightprobe/__init__.pyi +16 -43
- bl_ui/properties_data_mesh/__init__.pyi +47 -62
- bl_ui/properties_data_metaball/__init__.pyi +9 -20
- bl_ui/properties_data_modifier/__init__.pyi +22 -28
- bl_ui/properties_data_pointcloud/__init__.pyi +8 -19
- bl_ui/properties_data_shaderfx/__init__.pyi +2 -3
- bl_ui/properties_data_speaker/__init__.pyi +9 -20
- bl_ui/properties_data_volume/__init__.pyi +12 -29
- bl_ui/properties_freestyle/__init__.pyi +27 -76
- bl_ui/properties_grease_pencil_common/__init__.pyi +10 -168
- bl_ui/properties_mask_common/__init__.pyi +8 -21
- bl_ui/properties_material/__init__.pyi +26 -86
- bl_ui/properties_material_gpencil/__init__.pyi +36 -57
- bl_ui/properties_object/__init__.pyi +59 -65
- bl_ui/properties_output/__init__.pyi +21 -60
- bl_ui/properties_paint_common/__init__.pyi +30 -22
- bl_ui/properties_particle/__init__.pyi +58 -161
- bl_ui/properties_physics_cloth/__init__.pyi +15 -42
- bl_ui/properties_physics_common/__init__.pyi +2 -3
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +23 -66
- bl_ui/properties_physics_field/__init__.pyi +11 -30
- bl_ui/properties_physics_fluid/__init__.pyi +29 -84
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +2 -3
- bl_ui/properties_physics_rigidbody/__init__.pyi +9 -24
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +14 -39
- bl_ui/properties_physics_softbody/__init__.pyi +16 -45
- bl_ui/properties_render/__init__.pyi +139 -197
- bl_ui/properties_scene/__init__.pyi +46 -50
- bl_ui/properties_strip/__init__.pyi +744 -0
- bl_ui/properties_strip_modifier/__init__.pyi +45 -0
- bl_ui/properties_texture/__init__.pyi +30 -83
- bl_ui/properties_view_layer/__init__.pyi +84 -39
- bl_ui/properties_workspace/__init__.pyi +6 -13
- bl_ui/properties_world/__init__.pyi +14 -35
- bl_ui/space_clip/__init__.pyi +150 -231
- bl_ui/space_console/__init__.pyi +7 -18
- bl_ui/space_dopesheet/__init__.pyi +143 -100
- bl_ui/space_filebrowser/__init__.pyi +33 -90
- bl_ui/space_graph/__init__.pyi +48 -85
- bl_ui/space_image/__init__.pyi +111 -229
- bl_ui/space_info/__init__.pyi +7 -18
- bl_ui/space_nla/__init__.pyi +44 -73
- bl_ui/space_node/__init__.pyi +161 -123
- bl_ui/space_outliner/__init__.pyi +16 -45
- bl_ui/space_properties/__init__.pyi +34 -10
- bl_ui/space_sequencer/__init__.pyi +164 -901
- bl_ui/space_spreadsheet/__init__.pyi +4 -9
- bl_ui/space_statusbar/__init__.pyi +2 -3
- bl_ui/space_text/__init__.pyi +17 -48
- bl_ui/space_time/__init__.pyi +25 -71
- bl_ui/space_toolsystem_common/__init__.pyi +2 -2
- bl_ui/space_toolsystem_toolbar/__init__.pyi +30 -7
- bl_ui/space_topbar/__init__.pyi +35 -79
- bl_ui/space_userpref/__init__.pyi +185 -321
- bl_ui/space_view3d/__init__.pyi +337 -817
- bl_ui/space_view3d_sidebar/__init__.pyi +127 -0
- bl_ui/space_view3d_toolbar/__init__.pyi +110 -880
- bl_ui/utils/__init__.pyi +0 -17
- blend_render_info/__init__.pyi +1 -0
- blf/__init__.pyi +8 -54
- bmesh/__init__.pyi +2 -9
- bmesh/geometry/__init__.pyi +1 -4
- bmesh/ops/__init__.pyi +125 -508
- bmesh/types/__init__.pyi +318 -664
- bmesh/utils/__init__.pyi +17 -43
- bpy/__init__.pyi +1 -1
- bpy/app/__init__.pyi +93 -88
- bpy/app/handlers/__init__.pyi +19 -19
- bpy/app/icons/__init__.pyi +0 -6
- bpy/app/timers/__init__.pyi +2 -7
- bpy/app/translations/__init__.pyi +8 -23
- bpy/msgbus/__init__.pyi +4 -6
- bpy/ops/action/__init__.pyi +68 -199
- bpy/ops/anim/__init__.pyi +142 -299
- bpy/ops/armature/__init__.pyi +78 -209
- bpy/ops/asset/__init__.pyi +46 -108
- bpy/ops/boid/__init__.pyi +28 -45
- bpy/ops/brush/__init__.pyi +13 -108
- bpy/ops/buttons/__init__.pyi +16 -75
- bpy/ops/cachefile/__init__.pyi +8 -65
- bpy/ops/camera/__init__.pyi +0 -11
- bpy/ops/clip/__init__.pyi +173 -471
- bpy/ops/cloth/__init__.pyi +0 -5
- bpy/ops/collection/__init__.pyi +23 -36
- bpy/ops/console/__init__.pyi +40 -98
- bpy/ops/constraint/__init__.pyi +14 -85
- bpy/ops/curve/__init__.pyi +94 -277
- bpy/ops/curves/__init__.pyi +119 -166
- bpy/ops/cycles/__init__.pyi +4 -15
- bpy/ops/dpaint/__init__.pyi +14 -24
- bpy/ops/ed/__init__.pyi +44 -92
- bpy/ops/export_anim/__init__.pyi +2 -10
- bpy/ops/export_scene/__init__.pyi +16 -170
- bpy/ops/extensions/__init__.pyi +60 -165
- bpy/ops/file/__init__.pyi +110 -246
- bpy/ops/fluid/__init__.pyi +52 -83
- bpy/ops/font/__init__.pyi +40 -144
- bpy/ops/geometry/__init__.pyi +12 -127
- bpy/ops/gizmogroup/__init__.pyi +4 -13
- bpy/ops/gpencil/__init__.pyi +22 -54
- bpy/ops/graph/__init__.pyi +92 -343
- bpy/ops/grease_pencil/__init__.pyi +218 -550
- bpy/ops/image/__init__.pyi +85 -435
- bpy/ops/import_anim/__init__.pyi +3 -17
- bpy/ops/import_curve/__init__.pyi +2 -5
- bpy/ops/import_scene/__init__.pyi +15 -49
- bpy/ops/info/__init__.pyi +16 -39
- bpy/ops/lattice/__init__.pyi +12 -36
- bpy/ops/marker/__init__.pyi +12 -51
- bpy/ops/mask/__init__.pyi +68 -193
- bpy/ops/material/__init__.pyi +18 -18
- bpy/ops/mball/__init__.pyi +4 -31
- bpy/ops/mesh/__init__.pyi +140 -967
- bpy/ops/nla/__init__.pyi +87 -206
- bpy/ops/node/__init__.pyi +714 -744
- bpy/ops/object/__init__.pyi +461 -1341
- bpy/ops/outliner/__init__.pyi +192 -376
- bpy/ops/paint/__init__.pyi +94 -319
- bpy/ops/paintcurve/__init__.pyi +20 -40
- bpy/ops/palette/__init__.pyi +14 -30
- bpy/ops/particle/__init__.pyi +86 -184
- bpy/ops/pointcloud/__init__.pyi +12 -38
- bpy/ops/pose/__init__.pyi +108 -261
- bpy/ops/poselib/__init__.pyi +32 -67
- bpy/ops/preferences/__init__.pyi +37 -187
- bpy/ops/ptcache/__init__.pyi +22 -36
- bpy/ops/render/__init__.pyi +20 -72
- bpy/ops/rigidbody/__init__.pyi +25 -63
- bpy/ops/scene/__init__.pyi +122 -181
- bpy/ops/screen/__init__.pyi +93 -221
- bpy/ops/script/__init__.pyi +4 -13
- bpy/ops/sculpt/__init__.pyi +69 -324
- bpy/ops/sculpt_curves/__init__.pyi +10 -23
- bpy/ops/sequencer/__init__.pyi +410 -730
- bpy/ops/sound/__init__.pyi +16 -114
- bpy/ops/spreadsheet/__init__.pyi +20 -37
- bpy/ops/surface/__init__.pyi +0 -48
- bpy/ops/text/__init__.pyi +112 -250
- bpy/ops/text_editor/__init__.pyi +0 -5
- bpy/ops/texture/__init__.pyi +14 -21
- bpy/ops/transform/__init__.pyi +18 -386
- bpy/ops/ui/__init__.pyi +117 -188
- bpy/ops/uilist/__init__.pyi +0 -13
- bpy/ops/uv/__init__.pyi +238 -305
- bpy/ops/view2d/__init__.pyi +16 -76
- bpy/ops/view3d/__init__.pyi +153 -377
- bpy/ops/wm/__init__.pyi +277 -1397
- bpy/ops/workspace/__init__.pyi +32 -39
- bpy/ops/world/__init__.pyi +10 -12
- bpy/path/__init__.pyi +1 -35
- bpy/props/__init__.pyi +347 -218
- bpy/stub_internal/rna_enums/__init__.pyi +142 -108
- bpy/types/__init__.pyi +77367 -101305
- bpy/utils/__init__.pyi +11 -82
- bpy/utils/previews/__init__.pyi +2 -11
- bpy/utils/units/__init__.pyi +5 -15
- bpy_extras/anim_utils/__init__.pyi +24 -16
- bpy_extras/bmesh_utils/__init__.pyi +0 -1
- bpy_extras/id_map_utils/__init__.pyi +14 -6
- bpy_extras/image_utils/__init__.pyi +2 -11
- bpy_extras/io_utils/__init__.pyi +8 -27
- bpy_extras/keyconfig_utils/__init__.pyi +1 -1
- bpy_extras/mesh_utils/__init__.pyi +0 -12
- bpy_extras/node_shader_utils/__init__.pyi +1 -9
- bpy_extras/object_utils/__init__.pyi +1 -15
- bpy_extras/view3d_utils/__init__.pyi +0 -18
- bpy_extras/wm_utils/progress_report/__init__.pyi +1 -1
- {fake_bpy_module-20250612.dist-info → fake_bpy_module-20260118.dist-info}/METADATA +4 -1
- fake_bpy_module-20260118.dist-info/RECORD +385 -0
- {fake_bpy_module-20250612.dist-info → fake_bpy_module-20260118.dist-info}/top_level.txt +17 -16
- freestyle/chainingiterators/__init__.pyi +5 -27
- freestyle/functions/__init__.pyi +0 -139
- freestyle/predicates/__init__.pyi +2 -53
- freestyle/shaders/__init__.pyi +15 -81
- freestyle/types/__init__.pyi +159 -799
- freestyle/utils/ContextFunctions/__init__.pyi +0 -23
- freestyle/utils/__init__.pyi +5 -11
- gpu/capabilities/__init__.pyi +0 -21
- gpu/matrix/__init__.pyi +1 -10
- gpu/platform/__init__.pyi +2 -7
- gpu/shader/__init__.pyi +26 -9
- gpu/state/__init__.pyi +60 -39
- gpu/texture/__init__.pyi +3 -5
- gpu/types/__init__.pyi +116 -184
- gpu_extras/batch/__init__.pyi +1 -5
- gpu_extras/presets/__init__.pyi +6 -8
- idprop/types/__init__.pyi +6 -6
- imbuf/__init__.pyi +3 -10
- imbuf/types/__init__.pyi +7 -21
- keyingsets_builtins/__init__.pyi +24 -67
- mathutils/__init__.pyi +241 -2207
- mathutils/bvhtree/__init__.pyi +18 -26
- mathutils/geometry/__init__.pyi +82 -132
- mathutils/interpolate/__init__.pyi +6 -5
- mathutils/kdtree/__init__.pyi +1 -11
- mathutils/noise/__init__.pyi +61 -106
- rna_prop_ui/__init__.pyi +1 -1
- bgl/__init__.pyi +0 -4256
- bpy_types/__init__.pyi +0 -30
- fake_bpy_module-20250612.dist-info/RECORD +0 -367
- {animsys_refactor → _animsys_refactor}/__init__.pyi +0 -0
- {animsys_refactor → _animsys_refactor}/py.typed +0 -0
- {bl_console_utils → _bl_console_utils}/__init__.pyi +0 -0
- {bl_console_utils → _bl_console_utils}/autocomplete/__init__.pyi +0 -0
- {bgl → _bl_console_utils}/py.typed +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/merge_po/__init__.pyi +0 -0
- {bl_console_utils → _bl_i18n_utils}/py.typed +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils_cli/__init__.pyi +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils_languages_menu/__init__.pyi +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils_rtl/__init__.pyi +0 -0
- {bl_previews_utils → _bl_previews_utils}/__init__.pyi +0 -0
- {bl_previews_utils → _bl_previews_utils}/bl_previews_render/__init__.pyi +0 -0
- {bl_i18n_utils → _bl_previews_utils}/py.typed +0 -0
- {bl_rna_utils → _bl_rna_utils}/__init__.pyi +0 -0
- {bl_rna_utils → _bl_rna_utils}/data_path/__init__.pyi +0 -0
- {bl_previews_utils → _bl_rna_utils}/py.typed +0 -0
- {bl_text_utils → _bl_text_utils}/__init__.pyi +0 -0
- {bl_text_utils → _bl_text_utils}/external_editor/__init__.pyi +0 -0
- {bl_rna_utils → _bl_text_utils}/py.typed +0 -0
- {bl_ui_utils → _bl_ui_utils}/layout/__init__.pyi +0 -0
- {bl_text_utils → _bl_ui_utils}/py.typed +0 -0
- {bl_ui_utils → _blendfile_header}/py.typed +0 -0
- /_bpy_internal/{freedesktop → platform/freedesktop}/__init__.pyi +0 -0
- {bpy_restrict_state → _bpy_restrict_state}/__init__.pyi +0 -0
- {bpy_restrict_state → _bpy_restrict_state}/py.typed +0 -0
- {bpy_types → _bpy_types}/py.typed +0 -0
- {console_python → _console_python}/__init__.pyi +0 -0
- {console_python → _console_python}/py.typed +0 -0
- {console_shell → _console_shell}/__init__.pyi +0 -0
- {console_shell → _console_shell}/py.typed +0 -0
- {graphviz_export → _graphviz_export}/__init__.pyi +0 -0
- {graphviz_export → _graphviz_export}/py.typed +0 -0
- {keyingsets_utils → _keyingsets_utils}/py.typed +0 -0
- {rna_info → _rna_info}/py.typed +0 -0
- {rna_xml → _rna_xml}/__init__.pyi +0 -0
- {rna_xml → _rna_xml}/py.typed +0 -0
- {fake_bpy_module-20250612.dist-info → fake_bpy_module-20260118.dist-info}/WHEEL +0 -0
bpy/app/timers/__init__.pyi
CHANGED
|
@@ -30,13 +30,12 @@ def is_registered(function: collections.abc.Callable[[], float | None]) -> bool:
|
|
|
30
30
|
"""Check if this function is registered as a timer.
|
|
31
31
|
|
|
32
32
|
:param function: Function to check.
|
|
33
|
-
:type function: collections.abc.Callable[[], float | None]
|
|
34
33
|
:return: True when this function is registered, otherwise False.
|
|
35
|
-
:rtype: bool
|
|
36
34
|
"""
|
|
37
35
|
|
|
38
36
|
def register(
|
|
39
37
|
function: collections.abc.Callable[[], float | None],
|
|
38
|
+
*,
|
|
40
39
|
first_interval: float | None = 0,
|
|
41
40
|
persistent: bool | None = False,
|
|
42
41
|
) -> None:
|
|
@@ -47,16 +46,12 @@ def register(
|
|
|
47
46
|
functools.partial can be used to assign some parameters.
|
|
48
47
|
|
|
49
48
|
:param function: The function that should called.
|
|
50
|
-
:type function: collections.abc.Callable[[], float | None]
|
|
51
49
|
:param first_interval: Seconds until the callback should be called the first time.
|
|
52
|
-
:
|
|
53
|
-
:param persistent: Don't remove timer when a new file is loaded.
|
|
54
|
-
:type persistent: bool | None
|
|
50
|
+
:param persistent: Dont remove timer when a new file is loaded.
|
|
55
51
|
"""
|
|
56
52
|
|
|
57
53
|
def unregister(function: collections.abc.Callable[[], float | None]) -> None:
|
|
58
54
|
"""Unregister timer.
|
|
59
55
|
|
|
60
56
|
:param function: Function to unregister.
|
|
61
|
-
:type function: collections.abc.Callable[[], float | None]
|
|
62
57
|
"""
|
|
@@ -72,29 +72,23 @@ 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.
|
|
75
|
-
:type msgid: str | None
|
|
76
75
|
:param msgctxt: The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
|
|
77
|
-
:type msgctxt: None | str | None
|
|
78
76
|
:return: The translated string (or msgid if no translation was found).
|
|
79
77
|
"""
|
|
80
78
|
|
|
81
79
|
def pgettext_data(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
82
|
-
"""Try to translate the given msgid (with optional msgctxt), if new data
|
|
80
|
+
"""Try to translate the given msgid (with optional msgctxt), if new data names translation is enabled.
|
|
83
81
|
|
|
84
82
|
:param msgid: The string to translate.
|
|
85
|
-
:type msgid: str | None
|
|
86
83
|
:param msgctxt: The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
|
|
87
|
-
:type msgctxt: None | str | None
|
|
88
84
|
:return: The translated string (or msgid if no translation was found).
|
|
89
85
|
"""
|
|
90
86
|
|
|
91
87
|
def pgettext_iface(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
92
|
-
"""Try to translate the given msgid (with optional msgctxt), if labels
|
|
88
|
+
"""Try to translate the given msgid (with optional msgctxt), if labels translation is enabled.
|
|
93
89
|
|
|
94
90
|
:param msgid: The string to translate.
|
|
95
|
-
:type msgid: str | None
|
|
96
91
|
:param msgctxt: The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
|
|
97
|
-
:type msgctxt: None | str | None
|
|
98
92
|
:return: The translated string (or msgid if no translation was found).
|
|
99
93
|
"""
|
|
100
94
|
|
|
@@ -102,57 +96,48 @@ def pgettext_n(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
|
102
96
|
"""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
97
|
|
|
104
98
|
:param msgid: The string to extract.
|
|
105
|
-
:type msgid: str | None
|
|
106
99
|
:param msgctxt: The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
|
|
107
|
-
:type msgctxt: None | str | None
|
|
108
100
|
:return: The original string.
|
|
109
101
|
"""
|
|
110
102
|
|
|
111
103
|
def pgettext_rpt(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
112
|
-
"""Try to translate the given msgid (with optional msgctxt), if reports
|
|
104
|
+
"""Try to translate the given msgid (with optional msgctxt), if reports translation is enabled.
|
|
113
105
|
|
|
114
106
|
:param msgid: The string to translate.
|
|
115
|
-
:type msgid: str | None
|
|
116
107
|
:param msgctxt: The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
|
|
117
|
-
:type msgctxt: None | str | None
|
|
118
108
|
:return: The translated string (or msgid if no translation was found).
|
|
119
109
|
"""
|
|
120
110
|
|
|
121
111
|
def pgettext_tip(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
122
|
-
"""Try to translate the given msgid (with optional msgctxt), if tooltips
|
|
112
|
+
"""Try to translate the given msgid (with optional msgctxt), if tooltips translation is enabled.
|
|
123
113
|
|
|
124
114
|
:param msgid: The string to translate.
|
|
125
|
-
:type msgid: str | None
|
|
126
115
|
:param msgctxt: The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
|
|
127
|
-
:type msgctxt: None | str | None
|
|
128
116
|
:return: The translated string (or msgid if no translation was found).
|
|
129
117
|
"""
|
|
130
118
|
|
|
131
119
|
def register(
|
|
132
120
|
module_name: str | None, translations_dict: dict[str, dict[str, str]] | None
|
|
133
121
|
) -> None:
|
|
134
|
-
"""Registers an
|
|
122
|
+
"""Registers an addons UI translations.
|
|
135
123
|
|
|
136
124
|
:param module_name: The name identifying the addon.
|
|
137
|
-
:type module_name: str | None
|
|
138
125
|
:param translations_dict: A dictionary built like that:
|
|
139
126
|
{locale: {msg_key: msg_translation, ...}, ...}
|
|
140
|
-
:type translations_dict: dict[str, dict[str, str]] | None
|
|
141
127
|
"""
|
|
142
128
|
|
|
143
129
|
def unregister(module_name: str | None) -> None:
|
|
144
|
-
"""Unregisters an
|
|
130
|
+
"""Unregisters an addons UI translations.
|
|
145
131
|
|
|
146
132
|
:param module_name: The name identifying the addon.
|
|
147
|
-
:type module_name: str | None
|
|
148
133
|
"""
|
|
149
134
|
|
|
150
135
|
contexts: typing.Any
|
|
151
|
-
""" Constant value bpy.app.translations.contexts(default_real=None, default
|
|
136
|
+
""" Constant value bpy.app.translations.contexts(default_real=None, default=*, operator_default=Operator, ui_events_keymaps=UI_Events_KeyMaps, plural=Plural, countable=Countable, id_action=Action, id_armature=Armature, no_translation=Do not translate, id_brush=Brush, id_cachefile=CacheFile, id_camera=Camera, id_collection=Collection, id_curves=Curves, id_curve=Curve, id_fs_linestyle=FreestyleLineStyle, id_gpencil=GPencil, id_id=ID, id_image=Image, id_lattice=Lattice, id_library=Library, id_light=Light, id_lightprobe=LightProbe, id_mask=Mask, id_material=Material, id_mesh=Mesh, id_metaball=Metaball, id_movieclip=MovieClip, id_nodetree=NodeTree, id_object=Object, id_paintcurve=PaintCurve, id_palette=Palette, id_particlesettings=ParticleSettings, id_pointcloud=PointCloud, id_scene=Scene, id_screen=Screen, id_sequence=Sequence, id_shapekey=Key, id_simulation=Simulation, id_sound=Sound, id_speaker=Speaker, id_text=Text, id_texture=Texture, id_vfont=VFont, id_volume=Volume, id_windowmanager=WindowManager, id_workspace=WorkSpace, id_world=World, editor_filebrowser=File browser, editor_python_console=Python console, editor_preferences=Preferences, editor_view3d=View3D, amount=Amount, color=Color, constraint=Constraint, modifier=Modifier, navigation=Navigation, render_layer=Render Layer, time=Time, unit=Unit)
|
|
152
137
|
"""
|
|
153
138
|
|
|
154
139
|
contexts_C_to_py: typing.Any
|
|
155
|
-
""" A readonly dict mapping contexts
|
|
140
|
+
""" A readonly dict mapping contexts C-identifiers to their py-identifiers.
|
|
156
141
|
"""
|
|
157
142
|
|
|
158
143
|
locale: typing.Any
|
bpy/msgbus/__init__.pyi
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""
|
|
2
2
|
The message bus system can be used to receive notifications when properties of
|
|
3
|
-
Blender
|
|
3
|
+
Blender data-blocks are changed via the data API.
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
--------------------
|
|
@@ -69,7 +69,7 @@ def publish_rna(
|
|
|
69
69
|
key: bpy.types.Property | bpy.types.Struct | tuple[bpy.types.Struct, str] | None,
|
|
70
70
|
) -> None:
|
|
71
71
|
"""Notify subscribers of changes to this property
|
|
72
|
-
(this typically
|
|
72
|
+
(this typically doesnt need to be called explicitly since changes will automatically publish updates).
|
|
73
73
|
In some cases it may be useful to publish changes explicitly using more general keys.
|
|
74
74
|
|
|
75
75
|
:param key: Represents the type of data being subscribed to
|
|
@@ -78,7 +78,6 @@ def publish_rna(
|
|
|
78
78
|
- A property instance.
|
|
79
79
|
- A struct type.
|
|
80
80
|
- A tuple representing a (struct, property name) pair.
|
|
81
|
-
:type key: bpy.types.Property | bpy.types.Struct | tuple[bpy.types.Struct, str] | None
|
|
82
81
|
"""
|
|
83
82
|
|
|
84
83
|
def subscribe_rna(
|
|
@@ -86,7 +85,8 @@ def subscribe_rna(
|
|
|
86
85
|
owner: typing.Any | None,
|
|
87
86
|
args,
|
|
88
87
|
notify,
|
|
89
|
-
|
|
88
|
+
*,
|
|
89
|
+
options: set[str] | None = set(),
|
|
90
90
|
) -> None:
|
|
91
91
|
"""Register a message bus subscription. It will be cleared when another blend file is
|
|
92
92
|
loaded, or can be cleared explicitly via `bpy.msgbus.clear_by_owner`.
|
|
@@ -97,9 +97,7 @@ def subscribe_rna(
|
|
|
97
97
|
- A property instance.
|
|
98
98
|
- A struct type.
|
|
99
99
|
- A tuple representing a (struct, property name) pair.
|
|
100
|
-
:type key: bpy.types.Property | bpy.types.Struct | tuple[bpy.types.Struct, str] | None
|
|
101
100
|
:param owner: Handle for this subscription (compared by identity).
|
|
102
|
-
:type owner: typing.Any | None
|
|
103
101
|
:param options: Change the behavior of the subscriber.
|
|
104
102
|
|
|
105
103
|
PERSISTENT when set, the subscriber will be kept when remapping ID data.
|