fake-bpy-module 20250604__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.

Files changed (284) hide show
  1. _bpy_internal/addons/cli/__init__.pyi +1 -1
  2. _bpy_internal/extensions/junction_module/__init__.pyi +7 -7
  3. _bpy_internal/extensions/stale_file_manager/__init__.pyi +8 -8
  4. _bpy_internal/extensions/wheel_manager/__init__.pyi +3 -3
  5. _bpy_internal/freedesktop/__init__.pyi +16 -16
  6. _bpy_internal/grease_pencil/stroke/__init__.pyi +4 -4
  7. _bpy_internal/system_info/text_generate_runtime/__init__.pyi +1 -1
  8. _bpy_internal/system_info/url_prefill_runtime/__init__.pyi +1 -1
  9. _bpy_internal/system_info/url_prefill_startup/__init__.pyi +2 -2
  10. addon_utils/__init__.pyi +12 -12
  11. animsys_refactor/__init__.pyi +6 -6
  12. aud/__init__.pyi +11 -11
  13. bgl/__init__.pyi +272 -252
  14. bl_app_override/__init__.pyi +3 -3
  15. bl_app_override/helpers/__init__.pyi +2 -2
  16. bl_app_template_utils/__init__.pyi +4 -4
  17. bl_console_utils/autocomplete/complete_namespace/__init__.pyi +2 -2
  18. bl_i18n_utils/bl_extract_messages/__init__.pyi +18 -16
  19. bl_i18n_utils/merge_po/__init__.pyi +1 -1
  20. bl_i18n_utils/settings/__init__.pyi +6 -6
  21. bl_i18n_utils/utils/__init__.pyi +48 -46
  22. bl_i18n_utils/utils_cli/__init__.pyi +6 -6
  23. bl_i18n_utils/utils_languages_menu/__init__.pyi +1 -1
  24. bl_i18n_utils/utils_rtl/__init__.pyi +2 -2
  25. bl_keymap_utils/io/__init__.pyi +9 -9
  26. bl_keymap_utils/keymap_from_toolbar/__init__.pyi +1 -1
  27. bl_keymap_utils/keymap_hierarchy/__init__.pyi +1 -1
  28. bl_keymap_utils/platform_helpers/__init__.pyi +2 -2
  29. bl_keymap_utils/versioning/__init__.pyi +1 -1
  30. bl_operators/__init__.pyi +2 -2
  31. bl_operators/add_mesh_torus/__init__.pyi +6 -6
  32. bl_operators/anim/__init__.pyi +24 -24
  33. bl_operators/assets/__init__.pyi +9 -9
  34. bl_operators/bmesh/find_adjacent/__init__.pyi +11 -9
  35. bl_operators/bone_selection_sets/__init__.pyi +18 -18
  36. bl_operators/clip/__init__.pyi +26 -26
  37. bl_operators/connect_to_output/__init__.pyi +17 -15
  38. bl_operators/console/__init__.pyi +10 -10
  39. bl_operators/constraint/__init__.pyi +8 -8
  40. bl_operators/file/__init__.pyi +6 -6
  41. bl_operators/freestyle/__init__.pyi +9 -9
  42. bl_operators/geometry_nodes/__init__.pyi +24 -24
  43. bl_operators/grease_pencil/__init__.pyi +2 -2
  44. bl_operators/image/__init__.pyi +7 -7
  45. bl_operators/image_as_planes/__init__.pyi +32 -32
  46. bl_operators/mesh/__init__.pyi +7 -7
  47. bl_operators/node/__init__.pyi +31 -31
  48. bl_operators/node_editor/node_functions/__init__.pyi +9 -9
  49. bl_operators/object/__init__.pyi +31 -31
  50. bl_operators/object_align/__init__.pyi +5 -5
  51. bl_operators/object_quick_effects/__init__.pyi +9 -9
  52. bl_operators/object_randomize_transform/__init__.pyi +3 -3
  53. bl_operators/presets/__init__.pyi +18 -18
  54. bl_operators/rigidbody/__init__.pyi +7 -7
  55. bl_operators/screen_play_rendered_anim/__init__.pyi +2 -2
  56. bl_operators/sequencer/__init__.pyi +19 -19
  57. bl_operators/spreadsheet/__init__.pyi +4 -4
  58. bl_operators/userpref/__init__.pyi +42 -42
  59. bl_operators/uvcalc_follow_active/__init__.pyi +5 -5
  60. bl_operators/uvcalc_lightmap/__init__.pyi +8 -8
  61. bl_operators/uvcalc_transform/__init__.pyi +20 -20
  62. bl_operators/vertexpaint_dirt/__init__.pyi +4 -4
  63. bl_operators/view3d/__init__.pyi +21 -19
  64. bl_operators/wm/__init__.pyi +88 -88
  65. bl_operators/world/__init__.pyi +2 -2
  66. bl_previews_utils/bl_previews_render/__init__.pyi +9 -7
  67. bl_rna_utils/data_path/__init__.pyi +2 -2
  68. bl_text_utils/external_editor/__init__.pyi +1 -1
  69. bl_ui/__init__.pyi +10 -10
  70. bl_ui/anim/__init__.pyi +2 -2
  71. bl_ui/asset_shelf/__init__.pyi +2 -2
  72. bl_ui/generic_ui_list/__init__.pyi +6 -6
  73. bl_ui/node_add_menu/__init__.pyi +15 -13
  74. bl_ui/node_add_menu_compositor/__init__.pyi +18 -18
  75. bl_ui/node_add_menu_geometry/__init__.pyi +54 -54
  76. bl_ui/node_add_menu_shader/__init__.pyi +16 -16
  77. bl_ui/node_add_menu_texture/__init__.pyi +9 -9
  78. bl_ui/properties_animviz/__init__.pyi +2 -2
  79. bl_ui/properties_collection/__init__.pyi +10 -8
  80. bl_ui/properties_constraint/__init__.pyi +125 -125
  81. bl_ui/properties_data_armature/__init__.pyi +22 -22
  82. bl_ui/properties_data_bone/__init__.pyi +20 -20
  83. bl_ui/properties_data_camera/__init__.pyi +19 -19
  84. bl_ui/properties_data_curve/__init__.pyi +23 -23
  85. bl_ui/properties_data_curves/__init__.pyi +9 -9
  86. bl_ui/properties_data_empty/__init__.pyi +4 -4
  87. bl_ui/properties_data_grease_pencil/__init__.pyi +25 -25
  88. bl_ui/properties_data_lattice/__init__.pyi +4 -4
  89. bl_ui/properties_data_light/__init__.pyi +14 -14
  90. bl_ui/properties_data_lightprobe/__init__.pyi +18 -18
  91. bl_ui/properties_data_mesh/__init__.pyi +26 -26
  92. bl_ui/properties_data_metaball/__init__.pyi +6 -6
  93. bl_ui/properties_data_modifier/__init__.pyi +12 -12
  94. bl_ui/properties_data_pointcloud/__init__.pyi +8 -8
  95. bl_ui/properties_data_shaderfx/__init__.pyi +1 -1
  96. bl_ui/properties_data_speaker/__init__.pyi +5 -5
  97. bl_ui/properties_data_volume/__init__.pyi +9 -9
  98. bl_ui/properties_freestyle/__init__.pyi +51 -51
  99. bl_ui/properties_grease_pencil_common/__init__.pyi +30 -30
  100. bl_ui/properties_mask_common/__init__.pyi +24 -24
  101. bl_ui/properties_material/__init__.pyi +27 -27
  102. bl_ui/properties_material_gpencil/__init__.pyi +12 -12
  103. bl_ui/properties_object/__init__.pyi +29 -29
  104. bl_ui/properties_output/__init__.pyi +29 -29
  105. bl_ui/properties_paint_common/__init__.pyi +59 -49
  106. bl_ui/properties_particle/__init__.pyi +101 -101
  107. bl_ui/properties_physics_cloth/__init__.pyi +20 -20
  108. bl_ui/properties_physics_common/__init__.pyi +8 -8
  109. bl_ui/properties_physics_dynamicpaint/__init__.pyi +57 -57
  110. bl_ui/properties_physics_field/__init__.pyi +23 -23
  111. bl_ui/properties_physics_fluid/__init__.pyi +76 -76
  112. bl_ui/properties_physics_geometry_nodes/__init__.pyi +3 -3
  113. bl_ui/properties_physics_rigidbody/__init__.pyi +18 -18
  114. bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +29 -29
  115. bl_ui/properties_physics_softbody/__init__.pyi +21 -21
  116. bl_ui/properties_render/__init__.pyi +81 -81
  117. bl_ui/properties_scene/__init__.pyi +22 -22
  118. bl_ui/properties_texture/__init__.pyi +39 -39
  119. bl_ui/properties_view_layer/__init__.pyi +12 -12
  120. bl_ui/properties_workspace/__init__.pyi +5 -5
  121. bl_ui/properties_world/__init__.pyi +18 -18
  122. bl_ui/space_clip/__init__.pyi +81 -81
  123. bl_ui/space_console/__init__.pyi +6 -6
  124. bl_ui/space_dopesheet/__init__.pyi +32 -32
  125. bl_ui/space_filebrowser/__init__.pyi +45 -45
  126. bl_ui/space_graph/__init__.pyi +21 -21
  127. bl_ui/space_image/__init__.pyi +73 -73
  128. bl_ui/space_info/__init__.pyi +6 -6
  129. bl_ui/space_nla/__init__.pyi +18 -18
  130. bl_ui/space_node/__init__.pyi +42 -42
  131. bl_ui/space_outliner/__init__.pyi +21 -21
  132. bl_ui/space_properties/__init__.pyi +6 -6
  133. bl_ui/space_sequencer/__init__.pyi +133 -133
  134. bl_ui/space_spreadsheet/__init__.pyi +4 -4
  135. bl_ui/space_statusbar/__init__.pyi +1 -1
  136. bl_ui/space_text/__init__.pyi +17 -17
  137. bl_ui/space_time/__init__.pyi +12 -12
  138. bl_ui/space_toolsystem_common/__init__.pyi +28 -26
  139. bl_ui/space_toolsystem_toolbar/__init__.pyi +36 -36
  140. bl_ui/space_topbar/__init__.pyi +32 -32
  141. bl_ui/space_userpref/__init__.pyi +132 -132
  142. bl_ui/space_view3d/__init__.pyi +297 -297
  143. bl_ui/space_view3d_toolbar/__init__.pyi +148 -149
  144. bl_ui/utils/__init__.pyi +5 -5
  145. bl_ui_utils/layout/__init__.pyi +1 -1
  146. blend_render_info/__init__.pyi +2 -2
  147. blf/__init__.pyi +15 -15
  148. bmesh/__init__.pyi +1 -1
  149. bmesh/ops/__init__.pyi +366 -357
  150. bmesh/types/__init__.pyi +59 -57
  151. bmesh/utils/__init__.pyi +2 -2
  152. bpy/app/__init__.pyi +3 -3
  153. bpy/app/icons/__init__.pyi +1 -1
  154. bpy/app/timers/__init__.pyi +2 -2
  155. bpy/app/translations/__init__.pyi +9 -9
  156. bpy/msgbus/__init__.pyi +3 -3
  157. bpy/ops/action/__init__.pyi +62 -38
  158. bpy/ops/anim/__init__.pyi +63 -61
  159. bpy/ops/armature/__init__.pyi +58 -48
  160. bpy/ops/asset/__init__.pyi +31 -17
  161. bpy/ops/boid/__init__.pyi +18 -8
  162. bpy/ops/brush/__init__.pyi +19 -13
  163. bpy/ops/buttons/__init__.pyi +14 -6
  164. bpy/ops/cachefile/__init__.pyi +9 -5
  165. bpy/ops/camera/__init__.pyi +2 -2
  166. bpy/ops/clip/__init__.pyi +112 -92
  167. bpy/ops/cloth/__init__.pyi +1 -1
  168. bpy/ops/collection/__init__.pyi +11 -9
  169. bpy/ops/console/__init__.pyi +37 -21
  170. bpy/ops/constraint/__init__.pyi +20 -18
  171. bpy/ops/curve/__init__.pyi +81 -51
  172. bpy/ops/curves/__init__.pyi +50 -30
  173. bpy/ops/cycles/__init__.pyi +3 -3
  174. bpy/ops/dpaint/__init__.pyi +5 -5
  175. bpy/ops/ed/__init__.pyi +19 -13
  176. bpy/ops/export_anim/__init__.pyi +1 -1
  177. bpy/ops/export_scene/__init__.pyi +2 -2
  178. bpy/ops/extensions/__init__.pyi +38 -32
  179. bpy/ops/file/__init__.pyi +72 -40
  180. bpy/ops/fluid/__init__.pyi +36 -14
  181. bpy/ops/font/__init__.pyi +41 -23
  182. bpy/ops/geometry/__init__.pyi +10 -10
  183. bpy/ops/gizmogroup/__init__.pyi +4 -2
  184. bpy/ops/gpencil/__init__.pyi +12 -8
  185. bpy/ops/graph/__init__.pyi +81 -65
  186. bpy/ops/grease_pencil/__init__.pyi +159 -115
  187. bpy/ops/image/__init__.pyi +63 -49
  188. bpy/ops/import_anim/__init__.pyi +1 -1
  189. bpy/ops/import_curve/__init__.pyi +1 -1
  190. bpy/ops/import_scene/__init__.pyi +2 -2
  191. bpy/ops/info/__init__.pyi +13 -7
  192. bpy/ops/lattice/__init__.pyi +14 -8
  193. bpy/ops/marker/__init__.pyi +13 -11
  194. bpy/ops/mask/__init__.pyi +59 -39
  195. bpy/ops/material/__init__.pyi +3 -3
  196. bpy/ops/mball/__init__.pyi +8 -8
  197. bpy/ops/mesh/__init__.pyi +182 -164
  198. bpy/ops/nla/__init__.pyi +65 -39
  199. bpy/ops/node/__init__.pyi +181 -147
  200. bpy/ops/object/__init__.pyi +262 -242
  201. bpy/ops/outliner/__init__.pyi +98 -72
  202. bpy/ops/paint/__init__.pyi +58 -54
  203. bpy/ops/paintcurve/__init__.pyi +12 -8
  204. bpy/ops/palette/__init__.pyi +11 -7
  205. bpy/ops/particle/__init__.pyi +58 -36
  206. bpy/ops/pointcloud/__init__.pyi +13 -7
  207. bpy/ops/pose/__init__.pyi +65 -51
  208. bpy/ops/poselib/__init__.pyi +17 -11
  209. bpy/ops/preferences/__init__.pyi +41 -35
  210. bpy/ops/ptcache/__init__.pyi +13 -7
  211. bpy/ops/render/__init__.pyi +17 -13
  212. bpy/ops/rigidbody/__init__.pyi +19 -13
  213. bpy/ops/scene/__init__.pyi +39 -37
  214. bpy/ops/screen/__init__.pyi +59 -39
  215. bpy/ops/script/__init__.pyi +5 -3
  216. bpy/ops/sculpt/__init__.pyi +44 -40
  217. bpy/ops/sculpt_curves/__init__.pyi +4 -4
  218. bpy/ops/sequencer/__init__.pyi +142 -100
  219. bpy/ops/sound/__init__.pyi +7 -7
  220. bpy/ops/spreadsheet/__init__.pyi +13 -7
  221. bpy/ops/surface/__init__.pyi +6 -6
  222. bpy/ops/text/__init__.pyi +73 -43
  223. bpy/ops/text_editor/__init__.pyi +1 -1
  224. bpy/ops/texture/__init__.pyi +8 -4
  225. bpy/ops/transform/__init__.pyi +29 -27
  226. bpy/ops/ui/__init__.pyi +42 -34
  227. bpy/ops/uilist/__init__.pyi +3 -3
  228. bpy/ops/uv/__init__.pyi +59 -49
  229. bpy/ops/view2d/__init__.pyi +14 -14
  230. bpy/ops/view3d/__init__.pyi +87 -67
  231. bpy/ops/wm/__init__.pyi +138 -116
  232. bpy/ops/workspace/__init__.pyi +11 -7
  233. bpy/ops/world/__init__.pyi +2 -2
  234. bpy/props/__init__.pyi +16 -13
  235. bpy/types/__init__.pyi +1206 -1157
  236. bpy/utils/__init__.pyi +23 -23
  237. bpy/utils/previews/__init__.pyi +3 -3
  238. bpy_extras/anim_utils/__init__.pyi +7 -7
  239. bpy_extras/bmesh_utils/__init__.pyi +1 -1
  240. bpy_extras/id_map_utils/__init__.pyi +3 -3
  241. bpy_extras/io_utils/__init__.pyi +14 -12
  242. bpy_extras/keyconfig_utils/__init__.pyi +3 -3
  243. bpy_extras/mesh_utils/__init__.pyi +2 -2
  244. bpy_extras/node_shader_utils/__init__.pyi +63 -63
  245. bpy_extras/node_utils/__init__.pyi +3 -3
  246. bpy_extras/object_utils/__init__.pyi +4 -4
  247. bpy_extras/wm_utils/progress_report/__init__.pyi +10 -10
  248. bpy_types/__init__.pyi +4 -4
  249. console_python/__init__.pyi +7 -7
  250. console_shell/__init__.pyi +5 -5
  251. {fake_bpy_module-20250604.dist-info → fake_bpy_module-20250606.dist-info}/METADATA +1 -1
  252. fake_bpy_module-20250606.dist-info/RECORD +367 -0
  253. freestyle/chainingiterators/__init__.pyi +35 -33
  254. freestyle/functions/__init__.pyi +55 -55
  255. freestyle/predicates/__init__.pyi +8 -8
  256. freestyle/shaders/__init__.pyi +79 -75
  257. freestyle/types/__init__.pyi +146 -142
  258. freestyle/utils/ContextFunctions/__init__.pyi +3 -1
  259. freestyle/utils/__init__.pyi +25 -25
  260. gpu/matrix/__init__.pyi +14 -14
  261. gpu/select/__init__.pyi +1 -1
  262. gpu/shader/__init__.pyi +1 -1
  263. gpu/state/__init__.pyi +19 -19
  264. gpu/types/__init__.pyi +50 -44
  265. gpu_extras/presets/__init__.pyi +2 -2
  266. graphviz_export/__init__.pyi +2 -2
  267. idprop/types/__init__.pyi +9 -9
  268. imbuf/__init__.pyi +3 -1
  269. imbuf/types/__init__.pyi +3 -3
  270. keyingsets_builtins/__init__.pyi +26 -26
  271. keyingsets_utils/__init__.pyi +14 -14
  272. mathutils/__init__.pyi +61 -53
  273. mathutils/bvhtree/__init__.pyi +4 -4
  274. mathutils/kdtree/__init__.pyi +3 -3
  275. mathutils/noise/__init__.pyi +1 -1
  276. nodeitems_builtins/__init__.pyi +4 -4
  277. nodeitems_utils/__init__.pyi +9 -9
  278. rna_info/__init__.pyi +25 -25
  279. rna_keymap_ui/__init__.pyi +6 -6
  280. rna_prop_ui/__init__.pyi +12 -12
  281. rna_xml/__init__.pyi +6 -6
  282. fake_bpy_module-20250604.dist-info/RECORD +0 -367
  283. {fake_bpy_module-20250604.dist-info → fake_bpy_module-20250606.dist-info}/WHEEL +0 -0
  284. {fake_bpy_module-20250604.dist-info → fake_bpy_module-20250606.dist-info}/top_level.txt +0 -0
@@ -4,7 +4,7 @@ import typing_extensions
4
4
  import numpy.typing as npt
5
5
  from . import helpers as helpers
6
6
 
7
- def class_filter(cls_parent, **kw): ...
7
+ def class_filter(cls_parent, **kw) -> None: ...
8
8
  def ui_draw_filter_register(
9
9
  *,
10
10
  ui_ignore_classes=None,
@@ -12,5 +12,5 @@ def ui_draw_filter_register(
12
12
  ui_ignore_property=None,
13
13
  ui_ignore_menu=None,
14
14
  ui_ignore_label=None,
15
- ): ...
16
- def ui_draw_filter_unregister(ui_ignore_store): ...
15
+ ) -> None: ...
16
+ def ui_draw_filter_unregister(ui_ignore_store) -> None: ...
@@ -17,5 +17,5 @@ class AppOverrideState:
17
17
  ui_ignore_operator: typing.Any
18
18
  ui_ignore_property: typing.Any
19
19
 
20
- def setup(self): ...
21
- def teardown(self): ...
20
+ def setup(self) -> None: ...
21
+ def teardown(self) -> None: ...
@@ -3,8 +3,8 @@ import collections.abc
3
3
  import typing_extensions
4
4
  import numpy.typing as npt
5
5
 
6
- def activate(*, template_id=None, reload_scripts=False): ...
7
- def import_from_id(template_id, *, ignore_not_found=False): ...
8
- def import_from_path(path, *, ignore_not_found=False): ...
9
- def reset(*, reload_scripts=False):
6
+ def activate(*, template_id=None, reload_scripts=False) -> None: ...
7
+ def import_from_id(template_id, *, ignore_not_found=False) -> None: ...
8
+ def import_from_path(path, *, ignore_not_found=False) -> None: ...
9
+ def reset(*, reload_scripts=False) -> None:
10
10
  """Sets default state."""
@@ -44,8 +44,8 @@ def complete_names(word: str, namespace: dict[str, typing.Any]) -> list[str]:
44
44
  :rtype: list[str]
45
45
  """
46
46
 
47
- def is_dict(obj):
47
+ def is_dict(obj) -> None:
48
48
  """Returns whether obj is a dictionary"""
49
49
 
50
- def is_struct_seq(obj):
50
+ def is_struct_seq(obj) -> None:
51
51
  """Returns whether obj is a structured sequence subclass: sys.float_info"""
@@ -3,23 +3,25 @@ import collections.abc
3
3
  import typing_extensions
4
4
  import numpy.typing as npt
5
5
 
6
- def check(check_ctxt, msgs, key, msgsrc, settings):
6
+ def check(check_ctxt, msgs, key, msgsrc, settings) -> None:
7
7
  """Performs a set of checks over the given key (context, message)..."""
8
8
 
9
- def dump_addon_bl_info(msgs, reports, module, settings): ...
10
- def dump_addon_messages(addon_module_name, do_checks, settings): ...
11
- def dump_asset_messages(msgs, reports, settings): ...
12
- def dump_extension_metadata(msgs, reports, settings): ...
13
- def dump_messages(do_messages, do_checks, settings): ...
14
- def dump_preset_messages(msgs, reports, settings): ...
15
- def dump_py_messages(msgs, reports, addons, settings, addons_only=False): ...
16
- def dump_py_messages_from_files(msgs, reports, files, settings): ...
17
- def dump_rna_messages(msgs, reports, settings, verbose=False):
9
+ def dump_addon_bl_info(msgs, reports, module, settings) -> None: ...
10
+ def dump_addon_messages(addon_module_name, do_checks, settings) -> None: ...
11
+ def dump_asset_messages(msgs, reports, settings) -> None: ...
12
+ def dump_extension_metadata(msgs, reports, settings) -> None: ...
13
+ def dump_messages(do_messages, do_checks, settings) -> None: ...
14
+ def dump_preset_messages(msgs, reports, settings) -> None: ...
15
+ def dump_py_messages(msgs, reports, addons, settings, addons_only=False) -> None: ...
16
+ def dump_py_messages_from_files(msgs, reports, files, settings) -> None: ...
17
+ def dump_rna_messages(msgs, reports, settings, verbose=False) -> None:
18
18
  """Dump into messages dict all RNA-defined UI messages (labels en tooltips)."""
19
19
 
20
- def dump_src_messages(msgs, reports, settings): ...
21
- def dump_template_messages(msgs, reports, settings): ...
22
- def init_spell_check(settings, lang="en_US"): ...
23
- def main(): ...
24
- def print_info(reports, pot): ...
25
- def process_msg(msgs, msgctxt, msgid, msgsrc, reports, check_ctxt, settings): ...
20
+ def dump_src_messages(msgs, reports, settings) -> None: ...
21
+ def dump_template_messages(msgs, reports, settings) -> None: ...
22
+ def init_spell_check(settings, lang="en_US") -> None: ...
23
+ def main() -> None: ...
24
+ def print_info(reports, pot) -> None: ...
25
+ def process_msg(
26
+ msgs, msgctxt, msgid, msgsrc, reports, check_ctxt, settings
27
+ ) -> None: ...
@@ -3,4 +3,4 @@ import collections.abc
3
3
  import typing_extensions
4
4
  import numpy.typing as npt
5
5
 
6
- def main(): ...
6
+ def main() -> None: ...
@@ -17,30 +17,30 @@ class I18nSettings:
17
17
  TEMPLATES_DIR: typing.Any
18
18
  WORK_DIR: typing.Any
19
19
 
20
- def from_dict(self, mapping):
20
+ def from_dict(self, mapping) -> None:
21
21
  """
22
22
 
23
23
  :param mapping:
24
24
  """
25
25
 
26
- def from_json(self, string):
26
+ def from_json(self, string) -> None:
27
27
  """
28
28
 
29
29
  :param string:
30
30
  """
31
31
 
32
- def load(self, fname, reset=False):
32
+ def load(self, fname, reset=False) -> None:
33
33
  """
34
34
 
35
35
  :param fname:
36
36
  :param reset:
37
37
  """
38
38
 
39
- def save(self, fname):
39
+ def save(self, fname) -> None:
40
40
  """
41
41
 
42
42
  :param fname:
43
43
  """
44
44
 
45
- def to_dict(self): ...
46
- def to_json(self): ...
45
+ def to_dict(self) -> None: ...
46
+ def to_json(self) -> None: ...
@@ -11,7 +11,7 @@ class I18n:
11
11
  writers: typing.Any
12
12
 
13
13
  @classmethod
14
- def check_py_module_has_translations(cls, src, settings=None):
14
+ def check_py_module_has_translations(cls, src, settings=None) -> None:
15
15
  """Check whether a given src (a py module, either a directory or a py file) has some i18n translation data,
16
16
  and returns a tuple (src_file, translations_tuple) if yes, else (None, None).
17
17
 
@@ -19,13 +19,13 @@ class I18n:
19
19
  :param settings:
20
20
  """
21
21
 
22
- def escape(self, do_all=False):
22
+ def escape(self, do_all=False) -> None:
23
23
  """
24
24
 
25
25
  :param do_all:
26
26
  """
27
27
 
28
- def parse(self, kind, src, langs=set()):
28
+ def parse(self, kind, src, langs=set()) -> None:
29
29
  """
30
30
 
31
31
  :param kind:
@@ -33,14 +33,14 @@ class I18n:
33
33
  :param langs:
34
34
  """
35
35
 
36
- def parse_from_po(self, src, langs=set()):
36
+ def parse_from_po(self, src, langs=set()) -> None:
37
37
  """
38
38
 
39
39
  :param src:
40
40
  :param langs:
41
41
  """
42
42
 
43
- def parse_from_py(self, src, langs=set()):
43
+ def parse_from_py(self, src, langs=set()) -> None:
44
44
  """src must be a valid path, either a py file or a module directory (in which case all py files inside it
45
45
  will be checked, first file matching will win!).
46
46
  if langs set is void, all languages found are loaded.
@@ -49,7 +49,7 @@ class I18n:
49
49
  :param langs:
50
50
  """
51
51
 
52
- def print_stats(self, prefix="", print_msgs=True):
52
+ def print_stats(self, prefix="", print_msgs=True) -> None:
53
53
  """Print out some stats about an I18n object.
54
54
  If print_msgs is True, it will also print all its translations' stats.
55
55
 
@@ -57,27 +57,27 @@ class I18n:
57
57
  :param print_msgs:
58
58
  """
59
59
 
60
- def unescape(self, do_all=True):
60
+ def unescape(self, do_all=True) -> None:
61
61
  """
62
62
 
63
63
  :param do_all:
64
64
  """
65
65
 
66
- def update_info(self): ...
67
- def write(self, kind, langs=set()):
66
+ def update_info(self) -> None: ...
67
+ def write(self, kind, langs=set()) -> None:
68
68
  """
69
69
 
70
70
  :param kind:
71
71
  :param langs:
72
72
  """
73
73
 
74
- def write_to_po(self, langs=set()):
74
+ def write_to_po(self, langs=set()) -> None:
75
75
  """
76
76
 
77
77
  :param langs:
78
78
  """
79
79
 
80
- def write_to_py(self, langs=set()):
80
+ def write_to_py(self, langs=set()) -> None:
81
81
  """
82
82
 
83
83
  :param langs:
@@ -99,35 +99,35 @@ class I18nMessage:
99
99
  settings: typing.Any
100
100
  sources: typing.Any
101
101
 
102
- def copy(self): ...
102
+ def copy(self) -> None: ...
103
103
  @classmethod
104
- def do_escape(cls, txt):
104
+ def do_escape(cls, txt) -> None:
105
105
  """Replace some chars by their escaped versions!
106
106
 
107
107
  :param txt:
108
108
  """
109
109
 
110
110
  @classmethod
111
- def do_unescape(cls, txt):
111
+ def do_unescape(cls, txt) -> None:
112
112
  """Replace escaped chars by real ones!
113
113
 
114
114
  :param txt:
115
115
  """
116
116
 
117
- def escape(self, do_all=False):
117
+ def escape(self, do_all=False) -> None:
118
118
  """
119
119
 
120
120
  :param do_all:
121
121
  """
122
122
 
123
- def normalize(self, max_len=80):
123
+ def normalize(self, max_len=80) -> None:
124
124
  """Normalize this message, call this before exporting it...
125
125
  Currently normalize msgctxt, msgid and msgstr lines to given max_len (if below 1, make them single line).
126
126
 
127
127
  :param max_len:
128
128
  """
129
129
 
130
- def unescape(self, do_all=True):
130
+ def unescape(self, do_all=True) -> None:
131
131
  """
132
132
 
133
133
  :param do_all:
@@ -139,7 +139,7 @@ class I18nMessages:
139
139
  parsers: typing.Any
140
140
  writers: typing.Any
141
141
 
142
- def check(self, fix=False):
142
+ def check(self, fix=False) -> None:
143
143
  """Check consistency between messages and their keys!
144
144
  Check messages using format stuff are consistent between msgid and msgstr!
145
145
  If fix is True, tries to fix the issues.
@@ -148,16 +148,16 @@ class I18nMessages:
148
148
  :param fix:
149
149
  """
150
150
 
151
- def clean_commented(self): ...
151
+ def clean_commented(self) -> None: ...
152
152
  @classmethod
153
- def cleanup_callback(cls, lng, settings):
153
+ def cleanup_callback(cls, lng, settings) -> None:
154
154
  """Cleanup a single PO file (specified by a filepath).Callback usable in a context where Blender specific modules (like bpy) are not available.
155
155
 
156
156
  :param lng:
157
157
  :param settings:
158
158
  """
159
159
 
160
- def escape(self, do_all=False):
160
+ def escape(self, do_all=False) -> None:
161
161
  """
162
162
 
163
163
  :param do_all:
@@ -165,7 +165,7 @@ class I18nMessages:
165
165
 
166
166
  def find_best_messages_matches(
167
167
  self, msgs, msgmap, rna_ctxt, rna_struct_name, rna_prop_name, rna_enum_name
168
- ):
168
+ ) -> None:
169
169
  """
170
170
 
171
171
  :param msgs:
@@ -185,7 +185,7 @@ class I18nMessages:
185
185
  bl_time,
186
186
  default_copyright=True,
187
187
  settings=None,
188
- ):
188
+ ) -> None:
189
189
  """Generate an empty I18nMessages object (only header is present!).
190
190
 
191
191
  :param uid:
@@ -196,26 +196,26 @@ class I18nMessages:
196
196
  :param settings:
197
197
  """
198
198
 
199
- def invalidate_reverse_cache(self, rebuild_now=False):
199
+ def invalidate_reverse_cache(self, rebuild_now=False) -> None:
200
200
  """Invalidate the reverse cache used by find_best_messages_matches.
201
201
 
202
202
  :param rebuild_now:
203
203
  """
204
204
 
205
- def merge(self, msgs, replace=False):
205
+ def merge(self, msgs, replace=False) -> None:
206
206
  """
207
207
 
208
208
  :param msgs:
209
209
  :param replace:
210
210
  """
211
211
 
212
- def normalize(self, max_len=80):
212
+ def normalize(self, max_len=80) -> None:
213
213
  """
214
214
 
215
215
  :param max_len:
216
216
  """
217
217
 
218
- def parse(self, kind, key, src):
218
+ def parse(self, kind, key, src) -> None:
219
219
  """
220
220
 
221
221
  :param kind:
@@ -223,14 +223,16 @@ class I18nMessages:
223
223
  :param src:
224
224
  """
225
225
 
226
- def parse_messages_from_po(self, src, key=None):
226
+ def parse_messages_from_po(self, src, key=None) -> None:
227
227
  """
228
228
 
229
229
  :param src:
230
230
  :param key:
231
231
  """
232
232
 
233
- def print_info(self, prefix="", output=None, print_stats=True, print_errors=True):
233
+ def print_info(
234
+ self, prefix="", output=None, print_stats=True, print_errors=True
235
+ ) -> None:
234
236
  """Print out some info about an I18nMessages object.
235
237
 
236
238
  :param prefix:
@@ -239,14 +241,14 @@ class I18nMessages:
239
241
  :param print_errors:
240
242
  """
241
243
 
242
- def rtl_process(self): ...
243
- def unescape(self, do_all=True):
244
+ def rtl_process(self) -> None: ...
245
+ def unescape(self, do_all=True) -> None:
244
246
  """
245
247
 
246
248
  :param do_all:
247
249
  """
248
250
 
249
- def update(self, ref, use_similar=None, keep_old_commented=True):
251
+ def update(self, ref, use_similar=None, keep_old_commented=True) -> None:
250
252
  """Update this I18nMessage with the ref one. Translations from ref are never used. Source comments from ref
251
253
  completely replace current ones. If use_similar is not 0.0, it will try to match new messages in ref with an
252
254
  existing one. Messages no more found in ref will be marked as commented if keep_old_commented is True,
@@ -258,7 +260,7 @@ class I18nMessages:
258
260
  """
259
261
 
260
262
  @classmethod
261
- def update_from_pot_callback(cls, pot, lng, settings):
263
+ def update_from_pot_callback(cls, pot, lng, settings) -> None:
262
264
  """Update or create a single PO file (specified by a filepath) from the given POT I18nMessages data.Callback usable in a context where Blender specific modules (like bpy) are not available.
263
265
 
264
266
  :param pot:
@@ -266,61 +268,61 @@ class I18nMessages:
266
268
  :param settings:
267
269
  """
268
270
 
269
- def update_info(self): ...
271
+ def update_info(self) -> None: ...
270
272
  @classmethod
271
- def update_to_blender_repo_callback(cls, lng, settings):
273
+ def update_to_blender_repo_callback(cls, lng, settings) -> None:
272
274
  """Cleanup and write a single PO file (specified by a filepath) into the relevant Blender source 'compact' PO file.Callback usable in a context where Blender specific modules (like bpy) are not available.
273
275
 
274
276
  :param lng:
275
277
  :param settings:
276
278
  """
277
279
 
278
- def write(self, kind, dest):
280
+ def write(self, kind, dest) -> None:
279
281
  """
280
282
 
281
283
  :param kind:
282
284
  :param dest:
283
285
  """
284
286
 
285
- def write_messages_to_mo(self, fname):
287
+ def write_messages_to_mo(self, fname) -> None:
286
288
  """Write messages in fname mo file.
287
289
 
288
290
  :param fname:
289
291
  """
290
292
 
291
- def write_messages_to_po(self, fname, compact=False):
293
+ def write_messages_to_po(self, fname, compact=False) -> None:
292
294
  """Write messages in fname po file.
293
295
 
294
296
  :param fname:
295
297
  :param compact:
296
298
  """
297
299
 
298
- def enable_addons(addons=None, support=None, disable=False, check_only=False):
300
+ def enable_addons(addons=None, support=None, disable=False, check_only=False) -> None:
299
301
  """Enable (or disable) addons based either on a set of names, or a set of 'support' types.
300
302
  Returns the list of all affected addons (as fake modules)!
301
303
  If "check_only" is set, no addon will be enabled nor disabled.
302
304
 
303
305
  """
304
306
 
305
- def find_best_isocode_matches(uid, iso_codes):
307
+ def find_best_isocode_matches(uid, iso_codes) -> None:
306
308
  """Return an ordered tuple of elements in iso_codes that can match the given uid, from most similar to lesser ones."""
307
309
 
308
- def get_best_similar(data): ...
309
- def get_po_files_from_dir(root_dir, langs=set()):
310
+ def get_best_similar(data) -> None: ...
311
+ def get_po_files_from_dir(root_dir, langs=set()) -> None:
310
312
  """Yield tuples (uid, po_path) of translations for each po file found in the given directory, which should be either
311
313
  a directory containing po files using language uid's as names (e.g. fr.po, es_ES.po, etc.), or
312
314
  a directory containing directories which names are language uids, and containing po files of the same names.
313
315
 
314
316
  """
315
317
 
316
- def is_valid_po_path(path): ...
317
- def list_po_dir(root_path, settings):
318
+ def is_valid_po_path(path) -> None: ...
319
+ def list_po_dir(root_path, settings) -> None:
318
320
  """Generator. List given directory (expecting one sub-directory per languages)
319
321
  and return all files matching languages listed in settings.Yield tuples (can_use, uid, num_id, name, isocode, po_path)Note that po_path may not actually exists.
320
322
 
321
323
  """
322
324
 
323
- def locale_explode(locale):
325
+ def locale_explode(locale) -> None:
324
326
  """Copies behavior of BLT_lang_locale_explode, keep them in sync."""
325
327
 
326
- def locale_match(loc1, loc2): ...
328
+ def locale_match(loc1, loc2) -> None: ...
@@ -3,9 +3,9 @@ import collections.abc
3
3
  import typing_extensions
4
4
  import numpy.typing as npt
5
5
 
6
- def cleanup_po(args, settings): ...
7
- def language_menu(args, settings): ...
8
- def main(): ...
9
- def rtl_process_po(args, settings): ...
10
- def strip_po(args, settings): ...
11
- def update_po(args, settings): ...
6
+ def cleanup_po(args, settings) -> None: ...
7
+ def language_menu(args, settings) -> None: ...
8
+ def main() -> None: ...
9
+ def rtl_process_po(args, settings) -> None: ...
10
+ def strip_po(args, settings) -> None: ...
11
+ def update_po(args, settings) -> None: ...
@@ -3,4 +3,4 @@ import collections.abc
3
3
  import typing_extensions
4
4
  import numpy.typing as npt
5
5
 
6
- def gen_menu_file(stats, settings): ...
6
+ def gen_menu_file(stats, settings) -> None: ...
@@ -3,13 +3,13 @@ import collections.abc
3
3
  import typing_extensions
4
4
  import numpy.typing as npt
5
5
 
6
- def log2vis(msgs, settings):
6
+ def log2vis(msgs, settings) -> None:
7
7
  """Globally mimics deprecated fribidi_log2vis.
8
8
  msgs should be an iterable of messages to RTL-process.
9
9
 
10
10
  """
11
11
 
12
- def protect_format_seq(msg):
12
+ def protect_format_seq(msg) -> None:
13
13
  """Find some specific escaping/formatting sequences (like ", %s, etc.,
14
14
  and protect them from any modification!
15
15
 
@@ -3,16 +3,16 @@ import collections.abc
3
3
  import typing_extensions
4
4
  import numpy.typing as npt
5
5
 
6
- def indent(levels): ...
7
- def keyconfig_export_as_data(wm, kc, filepath, *, all_keymaps=False): ...
6
+ def indent(levels) -> None: ...
7
+ def keyconfig_export_as_data(wm, kc, filepath, *, all_keymaps=False) -> None: ...
8
8
  def keyconfig_import_from_data(
9
9
  name, keyconfig_data, *, keyconfig_version=(0, 0, 0)
10
- ): ...
11
- def keyconfig_init_from_data(kc, keyconfig_data): ...
12
- def keyconfig_merge(kc1, kc2):
10
+ ) -> None: ...
11
+ def keyconfig_init_from_data(kc, keyconfig_data) -> None: ...
12
+ def keyconfig_merge(kc1, kc2) -> None:
13
13
  """note: kc1 takes priority over kc2"""
14
14
 
15
- def keymap_init_from_data(km, km_items, is_modal=False): ...
16
- def kmi_args_as_data(kmi): ...
17
- def repr_f32(f): ...
18
- def round_float_32(f): ...
15
+ def keymap_init_from_data(km, km_items, is_modal=False) -> None: ...
16
+ def kmi_args_as_data(kmi) -> None: ...
17
+ def repr_f32(f) -> None: ...
18
+ def round_float_32(f) -> None: ...
@@ -3,5 +3,5 @@ import collections.abc
3
3
  import typing_extensions
4
4
  import numpy.typing as npt
5
5
 
6
- def generate(context, space_type, *, use_fallback_keys=True, use_reset=True):
6
+ def generate(context, space_type, *, use_fallback_keys=True, use_reset=True) -> None:
7
7
  """Keymap for popup toolbar, currently generated each time."""
@@ -3,4 +3,4 @@ import collections.abc
3
3
  import typing_extensions
4
4
  import numpy.typing as npt
5
5
 
6
- def generate(): ...
6
+ def generate() -> None: ...
@@ -3,6 +3,6 @@ import collections.abc
3
3
  import typing_extensions
4
4
  import numpy.typing as npt
5
5
 
6
- def keyconfig_data_oskey_from_ctrl(keyconfig_data_src, *, filter_fn=None): ...
7
- def keyconfig_data_oskey_from_ctrl_for_macos(keyconfig_data_src):
6
+ def keyconfig_data_oskey_from_ctrl(keyconfig_data_src, *, filter_fn=None) -> None: ...
7
+ def keyconfig_data_oskey_from_ctrl_for_macos(keyconfig_data_src) -> None:
8
8
  """Use for apple since Cmd is typically used in-place of Ctrl."""
@@ -3,4 +3,4 @@ import collections.abc
3
3
  import typing_extensions
4
4
  import numpy.typing as npt
5
5
 
6
- def keyconfig_update(keyconfig_data, keyconfig_version): ...
6
+ def keyconfig_update(keyconfig_data, keyconfig_version) -> None: ...
bl_operators/__init__.pyi CHANGED
@@ -38,5 +38,5 @@ from . import view3d as view3d
38
38
  from . import wm as wm
39
39
  from . import world as world
40
40
 
41
- def register(): ...
42
- def unregister(): ...
41
+ def register() -> None: ...
42
+ def unregister() -> None: ...
@@ -28,30 +28,30 @@ class AddTorus(bpy.types.Operator, bpy_extras.object_utils.AddObjectHelper):
28
28
  :rtype: typing.Any
29
29
  """
30
30
 
31
- def draw(self, _context):
31
+ def draw(self, _context) -> None:
32
32
  """
33
33
 
34
34
  :param _context:
35
35
  """
36
36
 
37
- def execute(self, context):
37
+ def execute(self, context) -> None:
38
38
  """
39
39
 
40
40
  :param context:
41
41
  """
42
42
 
43
- def invoke(self, context, _event):
43
+ def invoke(self, context, _event) -> None:
44
44
  """
45
45
 
46
46
  :param context:
47
47
  :param _event:
48
48
  """
49
49
 
50
- def mode_update_callback(self, _context):
50
+ def mode_update_callback(self, _context) -> None:
51
51
  """
52
52
 
53
53
  :param _context:
54
54
  """
55
55
 
56
- def add_torus(major_rad, minor_rad, major_seg, minor_seg): ...
57
- def add_uvs(mesh, minor_seg, major_seg): ...
56
+ def add_torus(major_rad, minor_rad, major_seg, minor_seg) -> None: ...
57
+ def add_uvs(mesh, minor_seg, major_seg) -> None: ...