fake-bpy-module 20240224__py3-none-any.whl → 20240326__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.
Files changed (293) hide show
  1. addon_utils/__init__.pyi +54 -10
  2. animsys_refactor/__init__.pyi +36 -6
  3. aud/__init__.pyi +132 -125
  4. bgl/__init__.pyi +2545 -546
  5. bl_app_override/__init__.pyi +14 -3
  6. bl_app_override/helpers/__init__.pyi +24 -2
  7. bl_app_template_utils/__init__.pyi +19 -4
  8. bl_console_utils/autocomplete/complete_calltip/__init__.pyi +24 -5
  9. bl_console_utils/autocomplete/complete_import/__init__.pyi +14 -3
  10. bl_console_utils/autocomplete/complete_namespace/__init__.pyi +24 -5
  11. bl_console_utils/autocomplete/intellisense/__init__.pyi +9 -2
  12. bl_i18n_utils/bl_extract_messages/__init__.pyi +74 -15
  13. bl_i18n_utils/merge_po/__init__.pyi +4 -1
  14. bl_i18n_utils/settings/__init__.pyi +53 -6
  15. bl_i18n_utils/utils/__init__.pyi +332 -44
  16. bl_i18n_utils/utils_cli/__init__.pyi +29 -6
  17. bl_i18n_utils/utils_languages_menu/__init__.pyi +4 -1
  18. bl_i18n_utils/utils_rtl/__init__.pyi +9 -2
  19. bl_keymap_utils/io/__init__.pyi +44 -9
  20. bl_keymap_utils/keymap_from_toolbar/__init__.pyi +4 -1
  21. bl_keymap_utils/keymap_hierarchy/__init__.pyi +4 -1
  22. bl_keymap_utils/platform_helpers/__init__.pyi +9 -2
  23. bl_keymap_utils/versioning/__init__.pyi +4 -1
  24. bl_math/__init__.pyi +3 -3
  25. bl_operators/__init__.pyi +9 -2
  26. bl_operators/add_mesh_torus/__init__.pyi +171 -37
  27. bl_operators/anim/__init__.pyi +1065 -226
  28. bl_operators/assets/__init__.pyi +427 -92
  29. bl_operators/bmesh/find_adjacent/__init__.pyi +44 -9
  30. bl_operators/clip/__init__.pyi +1342 -287
  31. bl_operators/console/__init__.pyi +647 -140
  32. bl_operators/constraint/__init__.pyi +524 -112
  33. bl_operators/file/__init__.pyi +396 -84
  34. bl_operators/freestyle/__init__.pyi +532 -113
  35. bl_operators/geometry_nodes/__init__.pyi +2412 -596
  36. bl_operators/image/__init__.pyi +380 -82
  37. bl_operators/mesh/__init__.pyi +401 -85
  38. bl_operators/node/__init__.pyi +1756 -384
  39. bl_operators/object/__init__.pyi +2022 -552
  40. bl_operators/object_align/__init__.pyi +145 -31
  41. bl_operators/object_quick_effects/__init__.pyi +555 -124
  42. bl_operators/object_randomize_transform/__init__.pyi +136 -32
  43. bl_operators/presets/__init__.pyi +3516 -708
  44. bl_operators/rigidbody/__init__.pyi +401 -85
  45. bl_operators/screen_play_rendered_anim/__init__.pyi +129 -29
  46. bl_operators/sequencer/__init__.pyi +731 -149
  47. bl_operators/spreadsheet/__init__.pyi +145 -30
  48. bl_operators/userpref/__init__.pyi +3416 -824
  49. bl_operators/uvcalc_follow_active/__init__.pyi +149 -32
  50. bl_operators/uvcalc_lightmap/__init__.pyi +187 -34
  51. bl_operators/uvcalc_transform/__init__.pyi +344 -73
  52. bl_operators/vertexpaint_dirt/__init__.pyi +140 -30
  53. bl_operators/view3d/__init__.pyi +697 -146
  54. bl_operators/wm/__init__.pyi +6287 -1533
  55. bl_previews_utils/bl_previews_render/__init__.pyi +34 -7
  56. bl_rna_utils/data_path/__init__.pyi +12 -2
  57. bl_text_utils/external_editor/__init__.pyi +4 -1
  58. bl_ui/__init__.pyi +504 -106
  59. bl_ui/anim/__init__.pyi +164 -33
  60. bl_ui/asset_shelf/__init__.pyi +146 -31
  61. bl_ui/generic_ui_list/__init__.pyi +471 -99
  62. bl_ui/node_add_menu/__init__.pyi +196 -40
  63. bl_ui/node_add_menu_compositor/__init__.pyi +3017 -621
  64. bl_ui/node_add_menu_geometry/__init__.pyi +8060 -1625
  65. bl_ui/node_add_menu_shader/__init__.pyi +1709 -348
  66. bl_ui/node_add_menu_texture/__init__.pyi +1502 -305
  67. bl_ui/properties_animviz/__init__.pyi +32 -2
  68. bl_ui/properties_collection/__init__.pyi +787 -179
  69. bl_ui/properties_constraint/__init__.pyi +28635 -5523
  70. bl_ui/properties_data_armature/__init__.pyi +1905 -448
  71. bl_ui/properties_data_bone/__init__.pyi +1560 -336
  72. bl_ui/properties_data_camera/__init__.pyi +2269 -494
  73. bl_ui/properties_data_curve/__init__.pyi +2362 -534
  74. bl_ui/properties_data_curves/__init__.pyi +951 -203
  75. bl_ui/properties_data_empty/__init__.pyi +317 -69
  76. bl_ui/properties_data_gpencil/__init__.pyi +2924 -734
  77. bl_ui/properties_data_grease_pencil/__init__.pyi +1631 -188
  78. bl_ui/properties_data_lattice/__init__.pyi +472 -104
  79. bl_ui/properties_data_light/__init__.pyi +1570 -337
  80. bl_ui/properties_data_lightprobe/__init__.pyi +938 -208
  81. bl_ui/properties_data_mesh/__init__.pyi +3205 -767
  82. bl_ui/properties_data_metaball/__init__.pyi +774 -170
  83. bl_ui/properties_data_modifier/__init__.pyi +1554 -328
  84. bl_ui/properties_data_pointcloud/__init__.pyi +821 -194
  85. bl_ui/properties_data_shaderfx/__init__.pyi +154 -34
  86. bl_ui/properties_data_speaker/__init__.pyi +782 -168
  87. bl_ui/properties_data_volume/__init__.pyi +1243 -281
  88. bl_ui/properties_freestyle/__init__.pyi +4071 -1030
  89. bl_ui/properties_grease_pencil_common/__init__.pyi +2399 -483
  90. bl_ui/properties_mask_common/__init__.pyi +1256 -249
  91. bl_ui/properties_material/__init__.pyi +2351 -542
  92. bl_ui/properties_material_gpencil/__init__.pyi +1590 -365
  93. bl_ui/properties_object/__init__.pyi +2179 -512
  94. bl_ui/properties_output/__init__.pyi +2956 -705
  95. bl_ui/properties_paint_common/__init__.pyi +947 -140
  96. bl_ui/properties_particle/__init__.pyi +8322 -1970
  97. bl_ui/properties_physics_cloth/__init__.pyi +2254 -508
  98. bl_ui/properties_physics_common/__init__.pyi +200 -44
  99. bl_ui/properties_physics_dynamicpaint/__init__.pyi +4454 -965
  100. bl_ui/properties_physics_field/__init__.pyi +1695 -364
  101. bl_ui/properties_physics_fluid/__init__.pyi +6127 -1280
  102. bl_ui/properties_physics_geometry_nodes/__init__.pyi +157 -32
  103. bl_ui/properties_physics_rigidbody/__init__.pyi +1254 -278
  104. bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +2053 -483
  105. bl_ui/properties_physics_softbody/__init__.pyi +2394 -542
  106. bl_ui/properties_render/__init__.pyi +8312 -1933
  107. bl_ui/properties_scene/__init__.pyi +2211 -539
  108. bl_ui/properties_texture/__init__.pyi +4185 -1013
  109. bl_ui/properties_view_layer/__init__.pyi +2803 -664
  110. bl_ui/properties_workspace/__init__.pyi +626 -148
  111. bl_ui/properties_world/__init__.pyi +1092 -234
  112. bl_ui/space_clip/__init__.pyi +11475 -2805
  113. bl_ui/space_console/__init__.pyi +967 -202
  114. bl_ui/space_dopesheet/__init__.pyi +4260 -966
  115. bl_ui/space_filebrowser/__init__.pyi +4852 -1187
  116. bl_ui/space_graph/__init__.pyi +3251 -702
  117. bl_ui/space_image/__init__.pyi +12219 -2968
  118. bl_ui/space_info/__init__.pyi +964 -200
  119. bl_ui/space_nla/__init__.pyi +2756 -584
  120. bl_ui/space_node/__init__.pyi +5661 -1265
  121. bl_ui/space_outliner/__init__.pyi +2294 -478
  122. bl_ui/space_properties/__init__.pyi +417 -92
  123. bl_ui/space_sequencer/__init__.pyi +12436 -3009
  124. bl_ui/space_spreadsheet/__init__.pyi +184 -36
  125. bl_ui/space_statusbar/__init__.pyi +135 -30
  126. bl_ui/space_text/__init__.pyi +2556 -542
  127. bl_ui/space_time/__init__.pyi +1151 -243
  128. bl_ui/space_toolsystem_common/__init__.pyi +368 -66
  129. bl_ui/space_toolsystem_toolbar/__init__.pyi +1378 -228
  130. bl_ui/space_topbar/__init__.pyi +4214 -887
  131. bl_ui/space_userpref/__init__.pyi +13920 -3468
  132. bl_ui/space_view3d/__init__.pyi +43701 -10599
  133. bl_ui/space_view3d_toolbar/__init__.pyi +16380 -3860
  134. bl_ui/utils/__init__.pyi +42 -4
  135. bl_ui_utils/bug_report_url/__init__.pyi +4 -1
  136. bl_ui_utils/layout/__init__.pyi +4 -1
  137. blend_render_info/__init__.pyi +13 -3
  138. blf/__init__.pyi +5 -7
  139. bmesh/__init__.pyi +7 -7
  140. bmesh/geometry/__init__.pyi +5 -5
  141. bmesh/ops/__init__.pyi +490 -504
  142. bmesh/types/__init__.pyi +268 -262
  143. bmesh/utils/__init__.pyi +55 -55
  144. bpy/__init__.pyi +2 -2
  145. bpy/app/__init__.pyi +4 -5
  146. bpy/app/handlers/__init__.pyi +36 -36
  147. bpy/app/icons/__init__.pyi +8 -10
  148. bpy/app/timers/__init__.pyi +9 -11
  149. bpy/app/translations/__init__.pyi +20 -22
  150. bpy/msgbus/__init__.pyi +3 -12
  151. bpy/ops/action/__init__.pyi +350 -305
  152. bpy/ops/anim/__init__.pyi +464 -426
  153. bpy/ops/armature/__init__.pyi +392 -360
  154. bpy/ops/asset/__init__.pyi +166 -129
  155. bpy/ops/boid/__init__.pyi +64 -37
  156. bpy/ops/brush/__init__.pyi +78 -72
  157. bpy/ops/buttons/__init__.pyi +136 -122
  158. bpy/ops/cachefile/__init__.pyi +128 -123
  159. bpy/ops/camera/__init__.pyi +22 -24
  160. bpy/ops/clip/__init__.pyi +844 -735
  161. bpy/ops/cloth/__init__.pyi +10 -11
  162. bpy/ops/collection/__init__.pyi +38 -38
  163. bpy/ops/console/__init__.pyi +170 -141
  164. bpy/ops/constraint/__init__.pyi +156 -159
  165. bpy/ops/curve/__init__.pyi +518 -461
  166. bpy/ops/curves/__init__.pyi +188 -159
  167. bpy/ops/cycles/__init__.pyi +20 -18
  168. bpy/ops/dpaint/__init__.pyi +40 -30
  169. bpy/ops/ed/__init__.pyi +136 -107
  170. bpy/ops/export_anim/__init__.pyi +18 -19
  171. bpy/ops/export_mesh/__init__.pyi +26 -27
  172. bpy/ops/export_scene/__init__.pyi +313 -334
  173. bpy/ops/file/__init__.pyi +394 -304
  174. bpy/ops/fluid/__init__.pyi +114 -63
  175. bpy/ops/font/__init__.pyi +272 -245
  176. bpy/ops/geometry/__init__.pyi +92 -87
  177. bpy/ops/gizmogroup/__init__.pyi +24 -21
  178. bpy/ops/gpencil/__init__.pyi +1530 -1476
  179. bpy/ops/graph/__init__.pyi +680 -659
  180. bpy/ops/grease_pencil/__init__.pyi +510 -390
  181. bpy/ops/image/__init__.pyi +650 -603
  182. bpy/ops/import_anim/__init__.pyi +26 -27
  183. bpy/ops/import_curve/__init__.pyi +6 -7
  184. bpy/ops/import_mesh/__init__.pyi +18 -21
  185. bpy/ops/import_scene/__init__.pyi +86 -95
  186. bpy/ops/info/__init__.pyi +68 -55
  187. bpy/ops/lattice/__init__.pyi +70 -63
  188. bpy/ops/marker/__init__.pyi +110 -111
  189. bpy/ops/mask/__init__.pyi +352 -308
  190. bpy/ops/material/__init__.pyi +24 -12
  191. bpy/ops/mball/__init__.pyi +72 -75
  192. bpy/ops/mesh/__init__.pyi +2052 -2088
  193. bpy/ops/nla/__init__.pyi +369 -313
  194. bpy/ops/node/__init__.pyi +944 -805
  195. bpy/ops/object/__init__.pyi +2662 -2461
  196. bpy/ops/outliner/__init__.pyi +582 -431
  197. bpy/ops/paint/__init__.pyi +605 -516
  198. bpy/ops/paintcurve/__init__.pyi +72 -60
  199. bpy/ops/palette/__init__.pyi +54 -46
  200. bpy/ops/particle/__init__.pyi +302 -245
  201. bpy/ops/pose/__init__.pyi +366 -330
  202. bpy/ops/poselib/__init__.pyi +78 -64
  203. bpy/ops/preferences/__init__.pyi +361 -341
  204. bpy/ops/ptcache/__init__.pyi +56 -38
  205. bpy/ops/render/__init__.pyi +120 -117
  206. bpy/ops/rigidbody/__init__.pyi +114 -97
  207. bpy/ops/scene/__init__.pyi +302 -240
  208. bpy/ops/screen/__init__.pyi +414 -363
  209. bpy/ops/script/__init__.pyi +20 -18
  210. bpy/ops/sculpt/__init__.pyi +414 -452
  211. bpy/ops/sculpt_curves/__init__.pyi +42 -43
  212. bpy/ops/sequencer/__init__.pyi +1094 -1053
  213. bpy/ops/sound/__init__.pyi +214 -206
  214. bpy/ops/spreadsheet/__init__.pyi +34 -28
  215. bpy/ops/surface/__init__.pyi +108 -114
  216. bpy/ops/text/__init__.pyi +432 -350
  217. bpy/ops/text_editor/__init__.pyi +10 -11
  218. bpy/ops/texture/__init__.pyi +32 -21
  219. bpy/ops/transform/__init__.pyi +801 -854
  220. bpy/ops/ui/__init__.pyi +254 -185
  221. bpy/ops/uilist/__init__.pyi +20 -23
  222. bpy/ops/uv/__init__.pyi +618 -626
  223. bpy/ops/view2d/__init__.pyi +162 -161
  224. bpy/ops/view3d/__init__.pyi +669 -658
  225. bpy/ops/wm/__init__.pyi +2433 -2415
  226. bpy/ops/workspace/__init__.pyi +54 -31
  227. bpy/ops/world/__init__.pyi +8 -4
  228. bpy/path/__init__.pyi +111 -68
  229. bpy/props/__init__.pyi +263 -267
  230. bpy/types/__init__.pyi +86789 -85719
  231. bpy/utils/__init__.pyi +265 -123
  232. bpy/utils/previews/__init__.pyi +103 -17
  233. bpy/utils/units/__init__.pyi +19 -22
  234. bpy_extras/__init__.pyi +0 -4
  235. bpy_extras/anim_utils/__init__.pyi +11 -46
  236. bpy_extras/asset_utils/__init__.pyi +3 -12
  237. bpy_extras/id_map_utils/__init__.pyi +0 -2
  238. bpy_extras/image_utils/__init__.pyi +2 -2
  239. bpy_extras/io_utils/__init__.pyi +30 -27
  240. bpy_extras/keyconfig_utils/__init__.pyi +4 -1
  241. bpy_extras/mesh_utils/__init__.pyi +18 -18
  242. bpy_extras/node_utils/__init__.pyi +4 -3
  243. bpy_extras/object_utils/__init__.pyi +25 -26
  244. bpy_extras/view3d_utils/__init__.pyi +33 -38
  245. bpy_restrict_state/__init__.pyi +14 -1
  246. bpy_types/__init__.pyi +3873 -997
  247. console_python/__init__.pyi +41 -7
  248. console_shell/__init__.pyi +24 -5
  249. {fake_bpy_module-20240224.dist-info → fake_bpy_module-20240326.dist-info}/METADATA +1 -1
  250. fake_bpy_module-20240326.dist-info/RECORD +343 -0
  251. {fake_bpy_module-20240224.dist-info → fake_bpy_module-20240326.dist-info}/WHEEL +1 -1
  252. freestyle/chainingiterators/__init__.pyi +50 -52
  253. freestyle/functions/__init__.pyi +303 -207
  254. freestyle/predicates/__init__.pyi +299 -115
  255. freestyle/shaders/__init__.pyi +49 -80
  256. freestyle/types/__init__.pyi +465 -472
  257. freestyle/utils/ContextFunctions/__init__.pyi +9 -9
  258. freestyle/utils/__init__.pyi +28 -18
  259. gpu/capabilities/__init__.pyi +27 -19
  260. gpu/matrix/__init__.pyi +14 -16
  261. gpu/platform/__init__.pyi +5 -5
  262. gpu/shader/__init__.pyi +2 -5
  263. gpu/state/__init__.pyi +1 -1
  264. gpu/texture/__init__.pyi +3 -3
  265. gpu/types/__init__.pyi +54 -85
  266. gpu_extras/batch/__init__.pyi +27 -5
  267. gpu_extras/presets/__init__.pyi +52 -14
  268. graphviz_export/__init__.pyi +9 -2
  269. idprop/types/__init__.pyi +36 -12
  270. imbuf/__init__.pyi +8 -9
  271. imbuf/types/__init__.pyi +8 -15
  272. keyingsets_builtins/__init__.pyi +3149 -701
  273. keyingsets_utils/__init__.pyi +69 -14
  274. mathutils/__init__.pyi +502 -427
  275. mathutils/bvhtree/__init__.pyi +28 -32
  276. mathutils/geometry/__init__.pyi +177 -186
  277. mathutils/kdtree/__init__.pyi +16 -18
  278. mathutils/noise/__init__.pyi +47 -48
  279. nodeitems_builtins/__init__.pyi +50 -10
  280. nodeitems_utils/__init__.pyi +58 -10
  281. rna_info/__init__.pyi +230 -26
  282. rna_keymap_ui/__init__.pyi +29 -6
  283. rna_prop_ui/__init__.pyi +69 -12
  284. rna_xml/__init__.pyi +29 -6
  285. sys_info/__init__.pyi +4 -1
  286. bpy_extras/bmesh_utils/__init__.pyi +0 -6
  287. bpy_extras/extensions/__init__.pyi +0 -4
  288. bpy_extras/extensions/junction_module/__init__.pyi +0 -12
  289. bpy_extras/node_shader_utils/__init__.pyi +0 -131
  290. bpy_extras/wm_utils/__init__.pyi +0 -4
  291. bpy_extras/wm_utils/progress_report/__init__.pyi +0 -29
  292. fake_bpy_module-20240224.dist-info/RECORD +0 -349
  293. {fake_bpy_module-20240224.dist-info → fake_bpy_module-20240326.dist-info}/top_level.txt +0 -0
bpy/utils/__init__.pyi CHANGED
@@ -4,116 +4,140 @@ from . import units
4
4
 
5
5
  GenericType = typing.TypeVar("GenericType")
6
6
 
7
- def app_template_paths(*, path: typing.Optional[str] = None) -> typing.Any:
7
+ def app_template_paths(path: str = None):
8
8
  """Returns valid application template paths.
9
9
 
10
10
  :param path: Optional subdir.
11
- :type path: typing.Optional[str]
12
- :rtype: typing.Any
11
+ :type path: str
13
12
  :return: app template paths.
14
13
  """
15
14
 
16
15
  ...
17
16
 
17
+ def app_template_paths(path):
18
+ """ """
19
+
20
+ ...
21
+
18
22
  def blend_paths(
19
- absolute: typing.Optional[bool] = False,
20
- packed: typing.Optional[bool] = False,
21
- local: typing.Optional[bool] = False,
23
+ absolute: bool = False, packed: bool = False, local: bool = False
22
24
  ) -> typing.List[str]:
23
25
  """Returns a list of paths to external files referenced by the loaded .blend file.
24
26
 
25
27
  :param absolute: When true the paths returned are made absolute.
26
- :type absolute: typing.Optional[bool]
28
+ :type absolute: bool
27
29
  :param packed: When true skip file paths for packed data.
28
- :type packed: typing.Optional[bool]
30
+ :type packed: bool
29
31
  :param local: When true skip linked library paths.
30
- :type local: typing.Optional[bool]
31
- :rtype: typing.List[str]
32
+ :type local: bool
32
33
  :return: path list.
34
+ :rtype: typing.List[str]
33
35
  """
34
36
 
35
37
  ...
36
38
 
37
- def escape_identifier(string: typing.Optional[str]) -> str:
39
+ def escape_identifier(string: str) -> str:
38
40
  """Simple string escaping function used for animation paths.
39
41
 
40
42
  :param string: text
41
- :type string: typing.Optional[str]
42
- :rtype: str
43
+ :type string: str
43
44
  :return: The escaped string.
45
+ :rtype: str
44
46
  """
45
47
 
46
48
  ...
47
49
 
48
- def execfile(
49
- filepath: typing.Optional[str], *, mod: typing.Optional[typing.Any] = None
50
- ) -> typing.Any:
50
+ def execfile(filepath: str, mod=None):
51
51
  """Execute a file path as a Python script.
52
52
 
53
53
  :param filepath: Path of the script to execute.
54
- :type filepath: typing.Optional[str]
54
+ :type filepath: str
55
55
  :param mod: Optional cached module, the result of a previous execution.
56
- :type mod: typing.Optional[typing.Any]
57
- :rtype: typing.Any
58
56
  :return: The module which can be passed back in as mod.
59
57
  """
60
58
 
61
59
  ...
62
60
 
63
- def flip_name(
64
- name: typing.Optional[str], strip_digits: typing.Optional[bool] = False
65
- ) -> str:
61
+ def execfile(filepath, mod):
62
+ """ """
63
+
64
+ ...
65
+
66
+ def flip_name(name: str, strip_digits: bool = False) -> str:
66
67
  """Flip a name between left/right sides, useful for
67
68
  mirroring bone names.
68
69
 
69
70
  :param name: Bone name to flip.
70
- :type name: typing.Optional[str]
71
+ :type name: str
71
72
  :param strip_digits: Whether to remove .### suffix.
72
- :type strip_digits: typing.Optional[bool]
73
- :rtype: str
73
+ :type strip_digits: bool
74
74
  :return: The flipped name.
75
+ :rtype: str
75
76
  """
76
77
 
77
78
  ...
78
79
 
79
- def is_path_builtin(path): ...
80
- def keyconfig_init(): ...
81
- def keyconfig_set(filepath, *, report=None): ...
80
+ def is_path_builtin(path):
81
+ """ """
82
+
83
+ ...
84
+
85
+ def keyconfig_init():
86
+ """ """
87
+
88
+ ...
89
+
90
+ def keyconfig_init():
91
+ """ """
92
+
93
+ ...
94
+
95
+ def keyconfig_set(filepath, report=None):
96
+ """ """
97
+
98
+ ...
99
+
100
+ def keyconfig_set(filepath, report):
101
+ """ """
102
+
103
+ ...
104
+
82
105
  def load_scripts(
83
- *,
84
- reload_scripts: typing.Optional[bool] = False,
85
- refresh_scripts: typing.Optional[bool] = False,
86
- extensions: typing.Optional[bool] = True,
106
+ reload_scripts: bool = False, refresh_scripts: bool = False, extensions: bool = True
87
107
  ):
88
108
  """Load scripts and run each modules register function.
89
109
 
90
110
  :param reload_scripts: Causes all scripts to have their unregister method
91
111
  called before loading.
92
- :type reload_scripts: typing.Optional[bool]
112
+ :type reload_scripts: bool
93
113
  :param refresh_scripts: only load scripts which are not already loaded
94
114
  as modules.
95
- :type refresh_scripts: typing.Optional[bool]
115
+ :type refresh_scripts: bool
96
116
  :param extensions: Loads additional scripts (add-ons & app-templates).
97
- :type extensions: typing.Optional[bool]
117
+ :type extensions: bool
98
118
  """
99
119
 
100
120
  ...
101
121
 
102
- def load_scripts_extensions(reload_scripts): ...
103
- def make_rna_paths(
104
- struct_name: typing.Optional[str],
105
- prop_name: typing.Optional[str],
106
- enum_name: typing.Optional[str],
107
- ) -> typing.Tuple:
122
+ def load_scripts(reload_scripts, refresh_scripts, extensions):
123
+ """ """
124
+
125
+ ...
126
+
127
+ def load_scripts_extensions(reload_scripts):
128
+ """ """
129
+
130
+ ...
131
+
132
+ def make_rna_paths(struct_name: str, prop_name: str, enum_name: str):
108
133
  """Create RNA "paths" from given names.
109
134
 
110
135
  :param struct_name: Name of a RNA struct (like e.g. "Scene").
111
- :type struct_name: typing.Optional[str]
136
+ :type struct_name: str
112
137
  :param prop_name: Name of a RNA struct's property.
113
- :type prop_name: typing.Optional[str]
138
+ :type prop_name: str
114
139
  :param enum_name: Name of a RNA enum identifier.
115
- :type enum_name: typing.Optional[str]
116
- :rtype: typing.Tuple
140
+ :type enum_name: str
117
141
  :return: A triple of three "RNA paths"
118
142
  (most_complete_path, "struct.prop", "struct.prop:'enum'").
119
143
  If no enum_name is given, the third element will always be void.
@@ -121,51 +145,92 @@ def make_rna_paths(
121
145
 
122
146
  ...
123
147
 
148
+ def make_rna_paths(struct_name, prop_name, enum_name):
149
+ """ """
150
+
151
+ ...
152
+
124
153
  def manual_language_code(default="en") -> str:
125
154
  """
126
155
 
127
- :rtype: str
128
156
  :return: The language code used for user manual URL component based on the current language user-preference,
129
157
  falling back to the default when unavailable.
158
+ :rtype: str
130
159
  """
131
160
 
132
161
  ...
133
162
 
134
- def manual_map(): ...
135
- def modules_from_path(
136
- path: typing.Optional[str], loaded_modules: typing.Optional[typing.Set]
137
- ) -> typing.List:
163
+ def manual_language_code(default):
164
+ """ """
165
+
166
+ ...
167
+
168
+ def manual_map():
169
+ """ """
170
+
171
+ ...
172
+
173
+ def manual_map():
174
+ """ """
175
+
176
+ ...
177
+
178
+ def modules_from_path(path: str, loaded_modules: set) -> list:
138
179
  """Load all modules in a path and return them as a list.
139
180
 
140
181
  :param path: this path is scanned for scripts and packages.
141
- :type path: typing.Optional[str]
182
+ :type path: str
142
183
  :param loaded_modules: already loaded module names, files matching these
143
184
  names will be ignored.
144
- :type loaded_modules: typing.Optional[typing.Set]
145
- :rtype: typing.List
185
+ :type loaded_modules: set
146
186
  :return: all loaded modules.
187
+ :rtype: list
147
188
  """
148
189
 
149
190
  ...
150
191
 
151
- def preset_find(name, preset_path, *, display_name=False, ext=".py"): ...
152
- def preset_paths(subdir: typing.Optional[str]) -> typing.List:
192
+ def modules_from_path(path, loaded_modules):
193
+ """ """
194
+
195
+ ...
196
+
197
+ def preset_find(name, preset_path, display_name=False, ext=".py"):
198
+ """ """
199
+
200
+ ...
201
+
202
+ def preset_find(name, preset_path, display_name, ext):
203
+ """ """
204
+
205
+ ...
206
+
207
+ def preset_paths(subdir: str) -> list:
153
208
  """Returns a list of paths for a specific preset.
154
209
 
155
210
  :param subdir: preset subdirectory (must not be an absolute path).
156
- :type subdir: typing.Optional[str]
157
- :rtype: typing.List
211
+ :type subdir: str
158
212
  :return: script paths.
213
+ :rtype: list
159
214
  """
160
215
 
161
216
  ...
162
217
 
218
+ def preset_paths(subdir):
219
+ """ """
220
+
221
+ ...
222
+
163
223
  def refresh_script_paths():
164
224
  """Run this after creating new script paths to update sys.path"""
165
225
 
166
226
  ...
167
227
 
168
- def register_class(cls: typing.Optional[typing.Any]):
228
+ def refresh_script_paths():
229
+ """ """
230
+
231
+ ...
232
+
233
+ def register_class(cls):
169
234
  """Register a subclass of a Blender type class.
170
235
 
171
236
  :param cls: Blender type class in:
@@ -174,7 +239,6 @@ def register_class(cls: typing.Optional[typing.Any]):
174
239
  `bpy.types.Operator`, `bpy.types.KeyingSetInfo`,
175
240
  `bpy.types.RenderEngine`, `bpy.types.AssetShelf`,
176
241
  `bpy.types.FileHandler`
177
- :type cls: typing.Optional[typing.Any]
178
242
  """
179
243
 
180
244
  ...
@@ -187,59 +251,86 @@ def register_classes_factory(classes):
187
251
 
188
252
  ...
189
253
 
190
- def register_manual_map(manual_hook): ...
191
- def register_submodule_factory(
192
- module_name: typing.Optional[str],
193
- submodule_names: typing.Optional[typing.List[str]],
194
- ) -> typing.Tuple:
254
+ def register_classes_factory(classes):
255
+ """ """
256
+
257
+ ...
258
+
259
+ def register_cli_command(id: str, execute: typing.Callable):
260
+ """Register a command, accessible via the (-c / --command) command-line argument.Custom CommandsRegistering commands makes it possible to conveniently expose command line
261
+ functionality via commands passed to (-c / --command).Using Python Argument ParsingThis example shows how the Python argparse module can be used with a custom command.Using argparse is generally recommended as it has many useful utilities and
262
+ generates a --help message for your command.
263
+
264
+ :param id: The command identifier (must pass an str.isidentifier check).
265
+
266
+ If the id is already registered, a warning is printed and the command is inaccessible to prevent accidents invoking the wrong command.
267
+ :type id: str
268
+ :param execute: Callback, taking a single list of strings and returns an int.
269
+ The arguments are built from all command-line arguments following the command id.
270
+ The return value should be 0 for success, 1 on failure (specific error codes from the os module can also be used).
271
+ :type execute: typing.Callable
272
+ :return: The command handle which can be passed to `unregister_cli_command`.
273
+ """
274
+
275
+ ...
276
+
277
+ def register_manual_map(manual_hook):
278
+ """ """
279
+
280
+ ...
281
+
282
+ def register_manual_map(manual_hook):
283
+ """ """
284
+
285
+ ...
286
+
287
+ def register_submodule_factory(module_name: str, submodule_names: typing.List[str]):
195
288
  """Utility function to create register and unregister functions
196
289
  which simply load submodules,
197
290
  calling their register & unregister functions.
198
291
 
199
292
  :param module_name: The module name, typically __name__.
200
- :type module_name: typing.Optional[str]
293
+ :type module_name: str
201
294
  :param submodule_names: List of submodule names to load and unload.
202
- :type submodule_names: typing.Optional[typing.List[str]]
203
- :rtype: typing.Tuple
295
+ :type submodule_names: typing.List[str]
204
296
  :return: register and unregister functions.
205
297
  """
206
298
 
207
299
  ...
208
300
 
209
- def register_tool(
210
- tool_cls,
211
- *,
212
- after: typing.Optional[typing.Any] = None,
213
- separator: typing.Optional[bool] = False,
214
- group: typing.Optional[bool] = False,
215
- ):
301
+ def register_submodule_factory(module_name, submodule_names):
302
+ """ """
303
+
304
+ ...
305
+
306
+ def register_tool(tool_cls, after=None, separator: bool = False, group: bool = False):
216
307
  """Register a tool in the toolbar.
217
308
 
218
309
  :param after: Optional identifiers this tool will be added after.
219
- :type after: typing.Optional[typing.Any]
220
310
  :param separator: When true, add a separator before this tool.
221
- :type separator: typing.Optional[bool]
311
+ :type separator: bool
222
312
  :param group: When true, add a new nested group of tools.
223
- :type group: typing.Optional[bool]
313
+ :type group: bool
224
314
  """
225
315
 
226
316
  ...
227
317
 
228
- def resource_path(
229
- type: typing.Optional[str],
230
- major: typing.Optional[int] = None[0],
231
- minor: typing.Optional[str] = None[1],
232
- ) -> str:
318
+ def register_tool(tool_cls, after, separator, group):
319
+ """ """
320
+
321
+ ...
322
+
323
+ def resource_path(type: str, major: int = None[0], minor: str = None[1]) -> str:
233
324
  """Return the base path for storing system files.
234
325
 
235
326
  :param type: string in ['USER', 'LOCAL', 'SYSTEM'].
236
- :type type: typing.Optional[str]
327
+ :type type: str
237
328
  :param major: major version, defaults to current.
238
- :type major: typing.Optional[int]
329
+ :type major: int
239
330
  :param minor: minor version, defaults to current.
240
- :type minor: typing.Optional[str]
241
- :rtype: str
331
+ :type minor: str
242
332
  :return: the resource path (not necessarily existing).
333
+ :rtype: str
243
334
  """
244
335
 
245
336
  ...
@@ -249,96 +340,147 @@ def script_path_user():
249
340
 
250
341
  ...
251
342
 
343
+ def script_path_user():
344
+ """ """
345
+
346
+ ...
347
+
252
348
  def script_paths(
253
- *,
254
- subdir: typing.Optional[str] = None,
255
- user_pref: typing.Optional[bool] = True,
256
- check_all: typing.Optional[bool] = False,
257
- use_user=True,
258
- ) -> typing.List:
349
+ subdir: str = None, user_pref: bool = True, check_all: bool = False, use_user=True
350
+ ) -> list:
259
351
  """Returns a list of valid script paths.
260
352
 
261
353
  :param subdir: Optional subdir.
262
- :type subdir: typing.Optional[str]
354
+ :type subdir: str
263
355
  :param user_pref: Include the user preference script paths.
264
- :type user_pref: typing.Optional[bool]
356
+ :type user_pref: bool
265
357
  :param check_all: Include local, user and system paths rather just the paths Blender uses.
266
- :type check_all: typing.Optional[bool]
267
- :rtype: typing.List
358
+ :type check_all: bool
268
359
  :return: script paths.
360
+ :rtype: list
269
361
  """
270
362
 
271
363
  ...
272
364
 
273
- def script_paths_pref(): ...
274
- def smpte_from_frame(frame: typing.Optional[int], *, fps=None, fps_base=None) -> str:
365
+ def script_paths(subdir, user_pref, check_all, use_user):
366
+ """ """
367
+
368
+ ...
369
+
370
+ def script_paths_pref():
371
+ """ """
372
+
373
+ ...
374
+
375
+ def smpte_from_frame(frame: int, fps=None, fps_base=None) -> str:
275
376
  """Returns an SMPTE formatted string from the frame:
276
377
  HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
277
378
 
278
379
  :param frame: frame number.
279
- :type frame: typing.Optional[int]
280
- :rtype: str
380
+ :type frame: int
281
381
  :return: the frame string.
382
+ :rtype: str
282
383
  """
283
384
 
284
385
  ...
285
386
 
286
- def smpte_from_seconds(
287
- time: typing.Optional[typing.Union[float, int]], *, fps=None, fps_base=None
288
- ) -> str:
387
+ def smpte_from_frame(frame, fps, fps_base):
388
+ """ """
389
+
390
+ ...
391
+
392
+ def smpte_from_seconds(time: typing.Union[int, float], fps=None, fps_base=None) -> str:
289
393
  """Returns an SMPTE formatted string from the time:
290
394
  HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
291
395
 
292
396
  :param time: time in seconds.
293
- :type time: typing.Optional[typing.Union[float, int]]
294
- :rtype: str
397
+ :type time: typing.Union[int, float]
295
398
  :return: the frame string.
399
+ :rtype: str
296
400
  """
297
401
 
298
402
  ...
299
403
 
300
- def time_from_frame(frame, fps, fps_base): ...
301
- def time_to_frame(time, fps, fps_base): ...
302
- def unescape_identifier(string: typing.Optional[str]) -> str:
404
+ def smpte_from_seconds(time, fps, fps_base):
405
+ """ """
406
+
407
+ ...
408
+
409
+ def time_from_frame(frame, fps, fps_base):
410
+ """ """
411
+
412
+ ...
413
+
414
+ def time_to_frame(time, fps, fps_base):
415
+ """ """
416
+
417
+ ...
418
+
419
+ def unescape_identifier(string: str) -> str:
303
420
  """Simple string un-escape function used for animation paths.
304
421
  This performs the reverse of escape_identifier.
305
422
 
306
423
  :param string: text
307
- :type string: typing.Optional[str]
308
- :rtype: str
424
+ :type string: str
309
425
  :return: The un-escaped string.
426
+ :rtype: str
310
427
  """
311
428
 
312
429
  ...
313
430
 
314
- def unregister_class(cls: typing.Optional[typing.Any]):
431
+ def unregister_class(cls):
315
432
  """Unload the Python class from blender.
316
433
 
317
434
  :param cls: Blender type class,
318
435
  see `bpy.utils.register_class` for classes which can
319
436
  be registered.
320
- :type cls: typing.Optional[typing.Any]
321
437
  """
322
438
 
323
439
  ...
324
440
 
325
- def unregister_manual_map(manual_hook): ...
326
- def unregister_tool(tool_cls): ...
327
- def user_resource(
328
- resource_type,
329
- *,
330
- path: typing.Optional[str] = "",
331
- create: typing.Optional[bool] = False,
332
- ) -> str:
441
+ def unregister_cli_command(handle):
442
+ """Unregister a CLI command.
443
+
444
+ :param handle: The return value of `register_cli_command`.
445
+ """
446
+
447
+ ...
448
+
449
+ def unregister_manual_map(manual_hook):
450
+ """ """
451
+
452
+ ...
453
+
454
+ def unregister_manual_map(manual_hook):
455
+ """ """
456
+
457
+ ...
458
+
459
+ def unregister_tool(tool_cls):
460
+ """ """
461
+
462
+ ...
463
+
464
+ def unregister_tool(tool_cls):
465
+ """ """
466
+
467
+ ...
468
+
469
+ def user_resource(resource_type, path: str = "", create: bool = False) -> str:
333
470
  """Return a user resource path (normally from the users home directory).
334
471
 
335
472
  :param path: Optional subdirectory.
336
- :type path: typing.Optional[str]
473
+ :type path: str
337
474
  :param create: Treat the path as a directory and create
338
475
  it if its not existing.
339
- :type create: typing.Optional[bool]
340
- :rtype: str
476
+ :type create: bool
341
477
  :return: a path.
478
+ :rtype: str
342
479
  """
343
480
 
344
481
  ...
482
+
483
+ def user_resource(resource_type, path, create):
484
+ """ """
485
+
486
+ ...