fake-bpy-module 20240516__py3-none-any.whl → 20240517__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of fake-bpy-module might be problematic. Click here for more details.

Files changed (533) hide show
  1. _bpy_internal/freedesktop/__init__.pyi +2 -2
  2. addon_utils/__init__.pyi +43 -12
  3. animsys_refactor/__init__.pyi +4 -4
  4. aud/__init__.pyi +7 -7
  5. bgl/__init__.pyi +121 -183
  6. bl_app_override/__init__.pyi +5 -5
  7. bl_app_override/helpers/__init__.pyi +3 -1
  8. bl_app_template_utils/__init__.pyi +5 -5
  9. bl_console_utils/autocomplete/complete_calltip/__init__.pyi +48 -10
  10. bl_console_utils/autocomplete/complete_import/__init__.pyi +27 -6
  11. bl_console_utils/autocomplete/complete_namespace/__init__.pyi +40 -8
  12. bl_console_utils/autocomplete/intellisense/__init__.pyi +31 -4
  13. bl_i18n_utils/bl_extract_messages/__init__.pyi +5 -5
  14. bl_i18n_utils/settings/__init__.pyi +4 -2
  15. bl_i18n_utils/utils/__init__.pyi +86 -58
  16. bl_i18n_utils/utils_rtl/__init__.pyi +8 -2
  17. bl_keymap_utils/io/__init__.pyi +4 -4
  18. bl_keymap_utils/keymap_from_toolbar/__init__.pyi +2 -2
  19. bl_keymap_utils/platform_helpers/__init__.pyi +2 -2
  20. bl_operators/add_mesh_torus/__init__.pyi +126 -41
  21. bl_operators/anim/__init__.pyi +1001 -328
  22. bl_operators/assets/__init__.pyi +376 -123
  23. bl_operators/bmesh/find_adjacent/__init__.pyi +3 -3
  24. bl_operators/clip/__init__.pyi +1250 -409
  25. bl_operators/console/__init__.pyi +626 -205
  26. bl_operators/constraint/__init__.pyi +502 -165
  27. bl_operators/file/__init__.pyi +376 -123
  28. bl_operators/freestyle/__init__.pyi +501 -164
  29. bl_operators/geometry_nodes/__init__.pyi +501 -164
  30. bl_operators/image/__init__.pyi +621 -200
  31. bl_operators/mesh/__init__.pyi +376 -123
  32. bl_operators/node/__init__.pyi +1243 -402
  33. bl_operators/object/__init__.pyi +1876 -615
  34. bl_operators/object_align/__init__.pyi +126 -41
  35. bl_operators/object_quick_effects/__init__.pyi +502 -165
  36. bl_operators/object_randomize_transform/__init__.pyi +126 -41
  37. bl_operators/presets/__init__.pyi +3069 -1027
  38. bl_operators/rigidbody/__init__.pyi +376 -123
  39. bl_operators/screen_play_rendered_anim/__init__.pyi +126 -41
  40. bl_operators/sequencer/__init__.pyi +1009 -331
  41. bl_operators/spreadsheet/__init__.pyi +126 -41
  42. bl_operators/userpref/__init__.pyi +3263 -1078
  43. bl_operators/uvcalc_follow_active/__init__.pyi +126 -41
  44. bl_operators/uvcalc_lightmap/__init__.pyi +137 -47
  45. bl_operators/uvcalc_transform/__init__.pyi +289 -90
  46. bl_operators/vertexpaint_dirt/__init__.pyi +126 -41
  47. bl_operators/view3d/__init__.pyi +868 -279
  48. bl_operators/wm/__init__.pyi +5777 -1934
  49. bl_operators/world/__init__.pyi +126 -41
  50. bl_previews_utils/bl_previews_render/__init__.pyi +1 -1
  51. bl_rna_utils/data_path/__init__.pyi +8 -3
  52. bl_ui/__init__.pyi +338 -131
  53. bl_ui/anim/__init__.pyi +164 -64
  54. bl_ui/asset_shelf/__init__.pyi +129 -42
  55. bl_ui/generic_ui_list/__init__.pyi +412 -135
  56. bl_ui/node_add_menu/__init__.pyi +168 -68
  57. bl_ui/node_add_menu_compositor/__init__.pyi +2921 -1138
  58. bl_ui/node_add_menu_geometry/__init__.pyi +7785 -3032
  59. bl_ui/node_add_menu_shader/__init__.pyi +1621 -630
  60. bl_ui/node_add_menu_texture/__init__.pyi +1459 -567
  61. bl_ui/properties_animviz/__init__.pyi +2 -2
  62. bl_ui/properties_collection/__init__.pyi +806 -274
  63. bl_ui/properties_constraint/__init__.pyi +10253 -3458
  64. bl_ui/properties_data_armature/__init__.pyi +1615 -552
  65. bl_ui/properties_data_bone/__init__.pyi +1288 -425
  66. bl_ui/properties_data_camera/__init__.pyi +1854 -631
  67. bl_ui/properties_data_curve/__init__.pyi +1929 -636
  68. bl_ui/properties_data_curves/__init__.pyi +806 -274
  69. bl_ui/properties_data_empty/__init__.pyi +257 -84
  70. bl_ui/properties_data_gpencil/__init__.pyi +2380 -803
  71. bl_ui/properties_data_grease_pencil/__init__.pyi +1902 -656
  72. bl_ui/properties_data_lattice/__init__.pyi +388 -127
  73. bl_ui/properties_data_light/__init__.pyi +1541 -506
  74. bl_ui/properties_data_lightprobe/__init__.pyi +1667 -548
  75. bl_ui/properties_data_mesh/__init__.pyi +2704 -929
  76. bl_ui/properties_data_metaball/__init__.pyi +644 -211
  77. bl_ui/properties_data_modifier/__init__.pyi +1353 -502
  78. bl_ui/properties_data_pointcloud/__init__.pyi +679 -233
  79. bl_ui/properties_data_shaderfx/__init__.pyi +129 -42
  80. bl_ui/properties_data_speaker/__init__.pyi +644 -211
  81. bl_ui/properties_data_volume/__init__.pyi +1030 -339
  82. bl_ui/properties_freestyle/__init__.pyi +3113 -1035
  83. bl_ui/properties_grease_pencil_common/__init__.pyi +2464 -933
  84. bl_ui/properties_mask_common/__init__.pyi +1101 -420
  85. bl_ui/properties_material/__init__.pyi +2091 -699
  86. bl_ui/properties_material_gpencil/__init__.pyi +1350 -466
  87. bl_ui/properties_object/__init__.pyi +1838 -618
  88. bl_ui/properties_output/__init__.pyi +2414 -831
  89. bl_ui/properties_paint_common/__init__.pyi +412 -289
  90. bl_ui/properties_particle/__init__.pyi +6737 -2241
  91. bl_ui/properties_physics_cloth/__init__.pyi +1825 -612
  92. bl_ui/properties_physics_common/__init__.pyi +129 -42
  93. bl_ui/properties_physics_dynamicpaint/__init__.pyi +2821 -928
  94. bl_ui/properties_physics_field/__init__.pyi +1283 -422
  95. bl_ui/properties_physics_fluid/__init__.pyi +3620 -1203
  96. bl_ui/properties_physics_geometry_nodes/__init__.pyi +129 -42
  97. bl_ui/properties_physics_rigidbody/__init__.pyi +1027 -338
  98. bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +1667 -548
  99. bl_ui/properties_physics_softbody/__init__.pyi +1924 -633
  100. bl_ui/properties_render/__init__.pyi +6830 -2263
  101. bl_ui/properties_scene/__init__.pyi +1929 -636
  102. bl_ui/properties_texture/__init__.pyi +3370 -1118
  103. bl_ui/properties_view_layer/__init__.pyi +2346 -782
  104. bl_ui/properties_workspace/__init__.pyi +516 -169
  105. bl_ui/properties_world/__init__.pyi +1284 -421
  106. bl_ui/space_clip/__init__.pyi +10134 -3639
  107. bl_ui/space_console/__init__.pyi +939 -357
  108. bl_ui/space_dopesheet/__init__.pyi +4327 -1562
  109. bl_ui/space_filebrowser/__init__.pyi +4164 -1499
  110. bl_ui/space_graph/__init__.pyi +3108 -1179
  111. bl_ui/space_image/__init__.pyi +9766 -3596
  112. bl_ui/space_info/__init__.pyi +939 -357
  113. bl_ui/space_nla/__init__.pyi +2620 -988
  114. bl_ui/space_node/__init__.pyi +3994 -1434
  115. bl_ui/space_outliner/__init__.pyi +2203 -842
  116. bl_ui/space_properties/__init__.pyi +386 -127
  117. bl_ui/space_sequencer/__init__.pyi +10773 -3878
  118. bl_ui/space_spreadsheet/__init__.pyi +130 -43
  119. bl_ui/space_statusbar/__init__.pyi +129 -42
  120. bl_ui/space_text/__init__.pyi +2458 -925
  121. bl_ui/space_time/__init__.pyi +1033 -378
  122. bl_ui/space_toolsystem_common/__init__.pyi +20 -16
  123. bl_ui/space_toolsystem_toolbar/__init__.pyi +37 -21
  124. bl_ui/space_topbar/__init__.pyi +3980 -1496
  125. bl_ui/space_userpref/__init__.pyi +11373 -3797
  126. bl_ui/space_view3d/__init__.pyi +40865 -15356
  127. bl_ui/space_view3d_toolbar/__init__.pyi +12520 -4647
  128. bl_ui/temp_anim_layers/__init__.pyi +129 -42
  129. bl_ui/utils/__init__.pyi +28 -20
  130. bl_ui_utils/bug_report_url/__init__.pyi +1 -1
  131. bl_ui_utils/layout/__init__.pyi +1 -1
  132. blend_render_info/__init__.pyi +1 -1
  133. blf/__init__.pyi +4 -4
  134. bmesh/geometry/__init__.pyi +2 -3
  135. bmesh/ops/__init__.pyi +372 -419
  136. bmesh/types/__init__.pyi +38 -38
  137. bmesh/utils/__init__.pyi +10 -13
  138. bpy/app/__init__.pyi +4 -4
  139. bpy/app/handlers/__init__.pyi +36 -36
  140. bpy/app/icons/__init__.pyi +8 -8
  141. bpy/app/timers/__init__.pyi +10 -10
  142. bpy/app/translations/__init__.pyi +20 -22
  143. bpy/msgbus/__init__.pyi +2 -4
  144. bpy/ops/action/__init__.pyi +316 -394
  145. bpy/ops/anim/__init__.pyi +442 -548
  146. bpy/ops/armature/__init__.pyi +374 -470
  147. bpy/ops/asset/__init__.pyi +152 -184
  148. bpy/ops/bl_pkg/__init__.pyi +221 -272
  149. bpy/ops/boid/__init__.pyi +50 -66
  150. bpy/ops/brush/__init__.pyi +72 -90
  151. bpy/ops/buttons/__init__.pyi +132 -144
  152. bpy/ops/cachefile/__init__.pyi +128 -138
  153. bpy/ops/camera/__init__.pyi +26 -30
  154. bpy/ops/clip/__init__.pyi +777 -964
  155. bpy/ops/cloth/__init__.pyi +12 -14
  156. bpy/ops/collection/__init__.pyi +68 -86
  157. bpy/ops/console/__init__.pyi +158 -200
  158. bpy/ops/constraint/__init__.pyi +178 -214
  159. bpy/ops/curve/__init__.pyi +473 -576
  160. bpy/ops/curves/__init__.pyi +247 -302
  161. bpy/ops/cycles/__init__.pyi +28 -34
  162. bpy/ops/dpaint/__init__.pyi +34 -44
  163. bpy/ops/ed/__init__.pyi +126 -150
  164. bpy/ops/export_anim/__init__.pyi +22 -24
  165. bpy/ops/export_scene/__init__.pyi +302 -336
  166. bpy/ops/file/__init__.pyi +352 -432
  167. bpy/ops/fluid/__init__.pyi +90 -118
  168. bpy/ops/font/__init__.pyi +258 -304
  169. bpy/ops/geometry/__init__.pyi +100 -120
  170. bpy/ops/gizmogroup/__init__.pyi +22 -26
  171. bpy/ops/gpencil/__init__.pyi +1469 -1778
  172. bpy/ops/graph/__init__.pyi +644 -776
  173. bpy/ops/grease_pencil/__init__.pyi +597 -748
  174. bpy/ops/image/__init__.pyi +648 -744
  175. bpy/ops/import_anim/__init__.pyi +30 -32
  176. bpy/ops/import_curve/__init__.pyi +10 -12
  177. bpy/ops/import_scene/__init__.pyi +88 -96
  178. bpy/ops/info/__init__.pyi +60 -74
  179. bpy/ops/lattice/__init__.pyi +64 -80
  180. bpy/ops/marker/__init__.pyi +108 -130
  181. bpy/ops/mask/__init__.pyi +322 -402
  182. bpy/ops/material/__init__.pyi +18 -24
  183. bpy/ops/mball/__init__.pyi +70 -86
  184. bpy/ops/mesh/__init__.pyi +1986 -2322
  185. bpy/ops/nla/__init__.pyi +333 -411
  186. bpy/ops/node/__init__.pyi +886 -1100
  187. bpy/ops/object/__init__.pyi +2585 -3078
  188. bpy/ops/outliner/__init__.pyi +498 -636
  189. bpy/ops/paint/__init__.pyi +565 -680
  190. bpy/ops/paintcurve/__init__.pyi +64 -80
  191. bpy/ops/palette/__init__.pyi +50 -64
  192. bpy/ops/particle/__init__.pyi +267 -340
  193. bpy/ops/pose/__init__.pyi +336 -414
  194. bpy/ops/poselib/__init__.pyi +72 -90
  195. bpy/ops/preferences/__init__.pyi +386 -463
  196. bpy/ops/ptcache/__init__.pyi +46 -60
  197. bpy/ops/render/__init__.pyi +130 -154
  198. bpy/ops/rigidbody/__init__.pyi +102 -128
  199. bpy/ops/scene/__init__.pyi +280 -358
  200. bpy/ops/screen/__init__.pyi +382 -460
  201. bpy/ops/script/__init__.pyi +24 -30
  202. bpy/ops/sculpt/__init__.pyi +458 -532
  203. bpy/ops/sculpt_curves/__init__.pyi +41 -50
  204. bpy/ops/sequencer/__init__.pyi +1066 -1244
  205. bpy/ops/sound/__init__.pyi +216 -230
  206. bpy/ops/spreadsheet/__init__.pyi +30 -38
  207. bpy/ops/surface/__init__.pyi +108 -120
  208. bpy/ops/text/__init__.pyi +390 -476
  209. bpy/ops/text_editor/__init__.pyi +12 -14
  210. bpy/ops/texture/__init__.pyi +26 -34
  211. bpy/ops/transform/__init__.pyi +792 -878
  212. bpy/ops/ui/__init__.pyi +228 -294
  213. bpy/ops/uilist/__init__.pyi +32 -38
  214. bpy/ops/uv/__init__.pyi +602 -704
  215. bpy/ops/view2d/__init__.pyi +156 -184
  216. bpy/ops/view3d/__init__.pyi +582 -718
  217. bpy/ops/wm/__init__.pyi +2680 -2928
  218. bpy/ops/workspace/__init__.pyi +46 -60
  219. bpy/ops/world/__init__.pyi +12 -16
  220. bpy/path/__init__.pyi +179 -75
  221. bpy/props/__init__.pyi +261 -263
  222. bpy/types/__init__.pyi +17056 -21951
  223. bpy/utils/__init__.pyi +242 -118
  224. bpy/utils/previews/__init__.pyi +58 -28
  225. bpy/utils/units/__init__.pyi +20 -20
  226. bpy_extras/anim_utils/__init__.pyi +68 -28
  227. bpy_extras/bmesh_utils/__init__.pyi +8 -2
  228. bpy_extras/extensions/junction_module/__init__.pyi +5 -2
  229. bpy_extras/id_map_utils/__init__.pyi +3 -3
  230. bpy_extras/image_utils/__init__.pyi +44 -11
  231. bpy_extras/io_utils/__init__.pyi +113 -18
  232. bpy_extras/keyconfig_utils/__init__.pyi +2 -2
  233. bpy_extras/mesh_utils/__init__.pyi +71 -19
  234. bpy_extras/node_shader_utils/__init__.pyi +9 -4
  235. bpy_extras/node_utils/__init__.pyi +9 -2
  236. bpy_extras/object_utils/__init__.pyi +71 -12
  237. bpy_extras/view3d_utils/__init__.pyi +80 -10
  238. bpy_extras/wm_utils/progress_report/__init__.pyi +13 -10
  239. bpy_types/__init__.pyi +4197 -1333
  240. console_python/__init__.pyi +6 -1
  241. {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240517.dist-info}/METADATA +1 -1
  242. fake_bpy_module-20240517.dist-info/RECORD +353 -0
  243. freestyle/chainingiterators/__init__.pyi +4 -4
  244. freestyle/shaders/__init__.pyi +2 -2
  245. freestyle/types/__init__.pyi +84 -96
  246. freestyle/utils/ContextFunctions/__init__.pyi +2 -2
  247. freestyle/utils/__init__.pyi +3 -3
  248. gpu/matrix/__init__.pyi +6 -8
  249. gpu/state/__init__.pyi +2 -2
  250. gpu/types/__init__.pyi +12 -12
  251. gpu_extras/presets/__init__.pyi +2 -5
  252. graphviz_export/__init__.pyi +4 -2
  253. idprop/types/__init__.pyi +2 -2
  254. imbuf/__init__.pyi +4 -4
  255. keyingsets_builtins/__init__.pyi +2688 -839
  256. mathutils/__init__.pyi +194 -238
  257. mathutils/bvhtree/__init__.pyi +4 -4
  258. mathutils/geometry/__init__.pyi +153 -155
  259. mathutils/kdtree/__init__.pyi +8 -12
  260. mathutils/noise/__init__.pyi +26 -26
  261. nodeitems_utils/__init__.pyi +1 -1
  262. rna_info/__init__.pyi +17 -15
  263. rna_keymap_ui/__init__.pyi +1 -1
  264. rna_prop_ui/__init__.pyi +16 -14
  265. rna_xml/__init__.pyi +12 -12
  266. _bpy_internal/freedesktop/py.typed +0 -0
  267. bl_app_override/helpers/py.typed +0 -0
  268. bl_console_utils/autocomplete/complete_calltip/py.typed +0 -0
  269. bl_console_utils/autocomplete/complete_import/py.typed +0 -0
  270. bl_console_utils/autocomplete/complete_namespace/py.typed +0 -0
  271. bl_console_utils/autocomplete/intellisense/py.typed +0 -0
  272. bl_console_utils/autocomplete/py.typed +0 -0
  273. bl_i18n_utils/bl_extract_messages/py.typed +0 -0
  274. bl_i18n_utils/merge_po/py.typed +0 -0
  275. bl_i18n_utils/settings/py.typed +0 -0
  276. bl_i18n_utils/utils/py.typed +0 -0
  277. bl_i18n_utils/utils_cli/py.typed +0 -0
  278. bl_i18n_utils/utils_languages_menu/py.typed +0 -0
  279. bl_i18n_utils/utils_rtl/py.typed +0 -0
  280. bl_keymap_utils/io/py.typed +0 -0
  281. bl_keymap_utils/keymap_from_toolbar/py.typed +0 -0
  282. bl_keymap_utils/keymap_hierarchy/py.typed +0 -0
  283. bl_keymap_utils/platform_helpers/py.typed +0 -0
  284. bl_keymap_utils/versioning/py.typed +0 -0
  285. bl_operators/add_mesh_torus/py.typed +0 -0
  286. bl_operators/anim/py.typed +0 -0
  287. bl_operators/assets/py.typed +0 -0
  288. bl_operators/bmesh/find_adjacent/py.typed +0 -0
  289. bl_operators/bmesh/py.typed +0 -0
  290. bl_operators/clip/py.typed +0 -0
  291. bl_operators/console/py.typed +0 -0
  292. bl_operators/constraint/py.typed +0 -0
  293. bl_operators/file/py.typed +0 -0
  294. bl_operators/freestyle/py.typed +0 -0
  295. bl_operators/geometry_nodes/py.typed +0 -0
  296. bl_operators/image/py.typed +0 -0
  297. bl_operators/mesh/py.typed +0 -0
  298. bl_operators/node/py.typed +0 -0
  299. bl_operators/object/py.typed +0 -0
  300. bl_operators/object_align/py.typed +0 -0
  301. bl_operators/object_quick_effects/py.typed +0 -0
  302. bl_operators/object_randomize_transform/py.typed +0 -0
  303. bl_operators/presets/py.typed +0 -0
  304. bl_operators/rigidbody/py.typed +0 -0
  305. bl_operators/screen_play_rendered_anim/py.typed +0 -0
  306. bl_operators/sequencer/py.typed +0 -0
  307. bl_operators/spreadsheet/py.typed +0 -0
  308. bl_operators/userpref/py.typed +0 -0
  309. bl_operators/uvcalc_follow_active/py.typed +0 -0
  310. bl_operators/uvcalc_lightmap/py.typed +0 -0
  311. bl_operators/uvcalc_transform/py.typed +0 -0
  312. bl_operators/vertexpaint_dirt/py.typed +0 -0
  313. bl_operators/view3d/py.typed +0 -0
  314. bl_operators/wm/py.typed +0 -0
  315. bl_operators/world/py.typed +0 -0
  316. bl_previews_utils/bl_previews_render/py.typed +0 -0
  317. bl_rna_utils/data_path/py.typed +0 -0
  318. bl_text_utils/external_editor/py.typed +0 -0
  319. bl_ui/anim/py.typed +0 -0
  320. bl_ui/asset_shelf/py.typed +0 -0
  321. bl_ui/generic_ui_list/py.typed +0 -0
  322. bl_ui/node_add_menu/py.typed +0 -0
  323. bl_ui/node_add_menu_compositor/py.typed +0 -0
  324. bl_ui/node_add_menu_geometry/py.typed +0 -0
  325. bl_ui/node_add_menu_shader/py.typed +0 -0
  326. bl_ui/node_add_menu_texture/py.typed +0 -0
  327. bl_ui/properties_animviz/py.typed +0 -0
  328. bl_ui/properties_collection/py.typed +0 -0
  329. bl_ui/properties_constraint/py.typed +0 -0
  330. bl_ui/properties_data_armature/py.typed +0 -0
  331. bl_ui/properties_data_bone/py.typed +0 -0
  332. bl_ui/properties_data_camera/py.typed +0 -0
  333. bl_ui/properties_data_curve/py.typed +0 -0
  334. bl_ui/properties_data_curves/py.typed +0 -0
  335. bl_ui/properties_data_empty/py.typed +0 -0
  336. bl_ui/properties_data_gpencil/py.typed +0 -0
  337. bl_ui/properties_data_grease_pencil/py.typed +0 -0
  338. bl_ui/properties_data_lattice/py.typed +0 -0
  339. bl_ui/properties_data_light/py.typed +0 -0
  340. bl_ui/properties_data_lightprobe/py.typed +0 -0
  341. bl_ui/properties_data_mesh/py.typed +0 -0
  342. bl_ui/properties_data_metaball/py.typed +0 -0
  343. bl_ui/properties_data_modifier/py.typed +0 -0
  344. bl_ui/properties_data_pointcloud/py.typed +0 -0
  345. bl_ui/properties_data_shaderfx/py.typed +0 -0
  346. bl_ui/properties_data_speaker/py.typed +0 -0
  347. bl_ui/properties_data_volume/py.typed +0 -0
  348. bl_ui/properties_freestyle/py.typed +0 -0
  349. bl_ui/properties_grease_pencil_common/py.typed +0 -0
  350. bl_ui/properties_mask_common/py.typed +0 -0
  351. bl_ui/properties_material/py.typed +0 -0
  352. bl_ui/properties_material_gpencil/py.typed +0 -0
  353. bl_ui/properties_object/py.typed +0 -0
  354. bl_ui/properties_output/py.typed +0 -0
  355. bl_ui/properties_paint_common/py.typed +0 -0
  356. bl_ui/properties_particle/py.typed +0 -0
  357. bl_ui/properties_physics_cloth/py.typed +0 -0
  358. bl_ui/properties_physics_common/py.typed +0 -0
  359. bl_ui/properties_physics_dynamicpaint/py.typed +0 -0
  360. bl_ui/properties_physics_field/py.typed +0 -0
  361. bl_ui/properties_physics_fluid/py.typed +0 -0
  362. bl_ui/properties_physics_geometry_nodes/py.typed +0 -0
  363. bl_ui/properties_physics_rigidbody/py.typed +0 -0
  364. bl_ui/properties_physics_rigidbody_constraint/py.typed +0 -0
  365. bl_ui/properties_physics_softbody/py.typed +0 -0
  366. bl_ui/properties_render/py.typed +0 -0
  367. bl_ui/properties_scene/py.typed +0 -0
  368. bl_ui/properties_texture/py.typed +0 -0
  369. bl_ui/properties_view_layer/py.typed +0 -0
  370. bl_ui/properties_workspace/py.typed +0 -0
  371. bl_ui/properties_world/py.typed +0 -0
  372. bl_ui/space_clip/py.typed +0 -0
  373. bl_ui/space_console/py.typed +0 -0
  374. bl_ui/space_dopesheet/py.typed +0 -0
  375. bl_ui/space_filebrowser/py.typed +0 -0
  376. bl_ui/space_graph/py.typed +0 -0
  377. bl_ui/space_image/py.typed +0 -0
  378. bl_ui/space_info/py.typed +0 -0
  379. bl_ui/space_nla/py.typed +0 -0
  380. bl_ui/space_node/py.typed +0 -0
  381. bl_ui/space_outliner/py.typed +0 -0
  382. bl_ui/space_properties/py.typed +0 -0
  383. bl_ui/space_sequencer/py.typed +0 -0
  384. bl_ui/space_spreadsheet/py.typed +0 -0
  385. bl_ui/space_statusbar/py.typed +0 -0
  386. bl_ui/space_text/py.typed +0 -0
  387. bl_ui/space_time/py.typed +0 -0
  388. bl_ui/space_toolsystem_common/py.typed +0 -0
  389. bl_ui/space_toolsystem_toolbar/py.typed +0 -0
  390. bl_ui/space_topbar/py.typed +0 -0
  391. bl_ui/space_userpref/py.typed +0 -0
  392. bl_ui/space_view3d/py.typed +0 -0
  393. bl_ui/space_view3d_toolbar/py.typed +0 -0
  394. bl_ui/temp_anim_layers/py.typed +0 -0
  395. bl_ui/utils/py.typed +0 -0
  396. bl_ui_utils/bug_report_url/py.typed +0 -0
  397. bl_ui_utils/layout/py.typed +0 -0
  398. bmesh/geometry/py.typed +0 -0
  399. bmesh/ops/py.typed +0 -0
  400. bmesh/types/py.typed +0 -0
  401. bmesh/utils/py.typed +0 -0
  402. bpy/app/handlers/py.typed +0 -0
  403. bpy/app/icons/py.typed +0 -0
  404. bpy/app/py.typed +0 -0
  405. bpy/app/timers/py.typed +0 -0
  406. bpy/app/translations/py.typed +0 -0
  407. bpy/msgbus/py.typed +0 -0
  408. bpy/ops/action/py.typed +0 -0
  409. bpy/ops/anim/py.typed +0 -0
  410. bpy/ops/armature/py.typed +0 -0
  411. bpy/ops/asset/py.typed +0 -0
  412. bpy/ops/bl_pkg/py.typed +0 -0
  413. bpy/ops/boid/py.typed +0 -0
  414. bpy/ops/brush/py.typed +0 -0
  415. bpy/ops/buttons/py.typed +0 -0
  416. bpy/ops/cachefile/py.typed +0 -0
  417. bpy/ops/camera/py.typed +0 -0
  418. bpy/ops/clip/py.typed +0 -0
  419. bpy/ops/cloth/py.typed +0 -0
  420. bpy/ops/collection/py.typed +0 -0
  421. bpy/ops/console/py.typed +0 -0
  422. bpy/ops/constraint/py.typed +0 -0
  423. bpy/ops/curve/py.typed +0 -0
  424. bpy/ops/curves/py.typed +0 -0
  425. bpy/ops/cycles/py.typed +0 -0
  426. bpy/ops/dpaint/py.typed +0 -0
  427. bpy/ops/ed/py.typed +0 -0
  428. bpy/ops/export_anim/py.typed +0 -0
  429. bpy/ops/export_scene/py.typed +0 -0
  430. bpy/ops/file/py.typed +0 -0
  431. bpy/ops/fluid/py.typed +0 -0
  432. bpy/ops/font/py.typed +0 -0
  433. bpy/ops/geometry/py.typed +0 -0
  434. bpy/ops/gizmogroup/py.typed +0 -0
  435. bpy/ops/gpencil/py.typed +0 -0
  436. bpy/ops/graph/py.typed +0 -0
  437. bpy/ops/grease_pencil/py.typed +0 -0
  438. bpy/ops/image/py.typed +0 -0
  439. bpy/ops/import_anim/py.typed +0 -0
  440. bpy/ops/import_curve/py.typed +0 -0
  441. bpy/ops/import_scene/py.typed +0 -0
  442. bpy/ops/info/py.typed +0 -0
  443. bpy/ops/lattice/py.typed +0 -0
  444. bpy/ops/marker/py.typed +0 -0
  445. bpy/ops/mask/py.typed +0 -0
  446. bpy/ops/material/py.typed +0 -0
  447. bpy/ops/mball/py.typed +0 -0
  448. bpy/ops/mesh/py.typed +0 -0
  449. bpy/ops/nla/py.typed +0 -0
  450. bpy/ops/node/py.typed +0 -0
  451. bpy/ops/object/py.typed +0 -0
  452. bpy/ops/outliner/py.typed +0 -0
  453. bpy/ops/paint/py.typed +0 -0
  454. bpy/ops/paintcurve/py.typed +0 -0
  455. bpy/ops/palette/py.typed +0 -0
  456. bpy/ops/particle/py.typed +0 -0
  457. bpy/ops/pose/py.typed +0 -0
  458. bpy/ops/poselib/py.typed +0 -0
  459. bpy/ops/preferences/py.typed +0 -0
  460. bpy/ops/ptcache/py.typed +0 -0
  461. bpy/ops/py.typed +0 -0
  462. bpy/ops/render/py.typed +0 -0
  463. bpy/ops/rigidbody/py.typed +0 -0
  464. bpy/ops/scene/py.typed +0 -0
  465. bpy/ops/screen/py.typed +0 -0
  466. bpy/ops/script/py.typed +0 -0
  467. bpy/ops/sculpt/py.typed +0 -0
  468. bpy/ops/sculpt_curves/py.typed +0 -0
  469. bpy/ops/sequencer/py.typed +0 -0
  470. bpy/ops/sound/py.typed +0 -0
  471. bpy/ops/spreadsheet/py.typed +0 -0
  472. bpy/ops/surface/py.typed +0 -0
  473. bpy/ops/text/py.typed +0 -0
  474. bpy/ops/text_editor/py.typed +0 -0
  475. bpy/ops/texture/py.typed +0 -0
  476. bpy/ops/transform/py.typed +0 -0
  477. bpy/ops/ui/py.typed +0 -0
  478. bpy/ops/uilist/py.typed +0 -0
  479. bpy/ops/uv/py.typed +0 -0
  480. bpy/ops/view2d/py.typed +0 -0
  481. bpy/ops/view3d/py.typed +0 -0
  482. bpy/ops/wm/py.typed +0 -0
  483. bpy/ops/workspace/py.typed +0 -0
  484. bpy/ops/world/py.typed +0 -0
  485. bpy/path/py.typed +0 -0
  486. bpy/props/py.typed +0 -0
  487. bpy/types/py.typed +0 -0
  488. bpy/utils/previews/py.typed +0 -0
  489. bpy/utils/py.typed +0 -0
  490. bpy/utils/units/py.typed +0 -0
  491. bpy_extras/anim_utils/py.typed +0 -0
  492. bpy_extras/asset_utils/py.typed +0 -0
  493. bpy_extras/bmesh_utils/py.typed +0 -0
  494. bpy_extras/extensions/junction_module/py.typed +0 -0
  495. bpy_extras/extensions/py.typed +0 -0
  496. bpy_extras/id_map_utils/py.typed +0 -0
  497. bpy_extras/image_utils/py.typed +0 -0
  498. bpy_extras/io_utils/py.typed +0 -0
  499. bpy_extras/keyconfig_utils/py.typed +0 -0
  500. bpy_extras/mesh_utils/py.typed +0 -0
  501. bpy_extras/node_shader_utils/py.typed +0 -0
  502. bpy_extras/node_utils/py.typed +0 -0
  503. bpy_extras/object_utils/py.typed +0 -0
  504. bpy_extras/view3d_utils/py.typed +0 -0
  505. bpy_extras/wm_utils/progress_report/py.typed +0 -0
  506. bpy_extras/wm_utils/py.typed +0 -0
  507. fake_bpy_module-20240516.dist-info/RECORD +0 -618
  508. freestyle/chainingiterators/py.typed +0 -0
  509. freestyle/functions/py.typed +0 -0
  510. freestyle/predicates/py.typed +0 -0
  511. freestyle/shaders/py.typed +0 -0
  512. freestyle/types/py.typed +0 -0
  513. freestyle/utils/ContextFunctions/py.typed +0 -0
  514. freestyle/utils/py.typed +0 -0
  515. gpu/capabilities/py.typed +0 -0
  516. gpu/matrix/py.typed +0 -0
  517. gpu/platform/py.typed +0 -0
  518. gpu/select/py.typed +0 -0
  519. gpu/shader/py.typed +0 -0
  520. gpu/state/py.typed +0 -0
  521. gpu/texture/py.typed +0 -0
  522. gpu/types/py.typed +0 -0
  523. gpu_extras/batch/py.typed +0 -0
  524. gpu_extras/presets/py.typed +0 -0
  525. idprop/types/py.typed +0 -0
  526. imbuf/types/py.typed +0 -0
  527. mathutils/bvhtree/py.typed +0 -0
  528. mathutils/geometry/py.typed +0 -0
  529. mathutils/interpolate/py.typed +0 -0
  530. mathutils/kdtree/py.typed +0 -0
  531. mathutils/noise/py.typed +0 -0
  532. {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240517.dist-info}/WHEEL +0 -0
  533. {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240517.dist-info}/top_level.txt +0 -0
bpy/utils/__init__.pyi CHANGED
@@ -16,85 +16,99 @@ from . import units
16
16
 
17
17
  GenericType = typing.TypeVar("GenericType")
18
18
 
19
- def app_template_paths(path: typing.Optional[str] = None):
19
+ def app_template_paths(path: str | None = None):
20
20
  """Returns valid application template paths.
21
21
 
22
22
  :param path: Optional subdir.
23
- :type path: typing.Optional[str]
23
+ :type path: str | None
24
24
  :return: app template paths.
25
25
  """
26
26
 
27
27
  ...
28
28
 
29
- def app_template_paths(path):
30
- """ """
29
+ def app_template_paths(path: str | None = None):
30
+ """Returns valid application template paths.
31
+
32
+ :param path: Optional subdir.
33
+ :type path: str | None
34
+ :return: app template paths.
35
+ """
31
36
 
32
37
  ...
33
38
 
34
39
  def blend_paths(
35
- absolute: typing.Optional[bool] = False,
36
- packed: typing.Optional[bool] = False,
37
- local: typing.Optional[bool] = False,
38
- ) -> typing.List[str]:
40
+ absolute: bool | None = False,
41
+ packed: bool | None = False,
42
+ local: bool | None = False,
43
+ ) -> list[str]:
39
44
  """Returns a list of paths to external files referenced by the loaded .blend file.
40
45
 
41
46
  :param absolute: When true the paths returned are made absolute.
42
- :type absolute: typing.Optional[bool]
47
+ :type absolute: bool | None
43
48
  :param packed: When true skip file paths for packed data.
44
- :type packed: typing.Optional[bool]
49
+ :type packed: bool | None
45
50
  :param local: When true skip linked library paths.
46
- :type local: typing.Optional[bool]
51
+ :type local: bool | None
47
52
  :return: path list.
48
- :rtype: typing.List[str]
53
+ :rtype: list[str]
49
54
  """
50
55
 
51
56
  ...
52
57
 
53
- def escape_identifier(string: typing.Optional[str]) -> str:
58
+ def escape_identifier(string: str | None) -> str:
54
59
  """Simple string escaping function used for animation paths.
55
60
 
56
61
  :param string: text
57
- :type string: typing.Optional[str]
62
+ :type string: str | None
58
63
  :return: The escaped string.
59
64
  :rtype: str
60
65
  """
61
66
 
62
67
  ...
63
68
 
64
- def execfile(filepath: typing.Optional[str], mod=None):
69
+ def execfile(filepath: str | None, mod=None):
65
70
  """Execute a file path as a Python script.
66
71
 
67
72
  :param filepath: Path of the script to execute.
68
- :type filepath: typing.Optional[str]
73
+ :type filepath: str | None
69
74
  :param mod: Optional cached module, the result of a previous execution.
70
75
  :return: The module which can be passed back in as mod.
71
76
  """
72
77
 
73
78
  ...
74
79
 
75
- def execfile(filepath, mod):
76
- """ """
80
+ def execfile(filepath: str | None, mod=None):
81
+ """Execute a file path as a Python script.
82
+
83
+ :param filepath: Path of the script to execute.
84
+ :type filepath: str | None
85
+ :param mod: Optional cached module, the result of a previous execution.
86
+ :return: The module which can be passed back in as mod.
87
+ """
77
88
 
78
89
  ...
79
90
 
80
- def flip_name(
81
- name: typing.Optional[str], strip_digits: typing.Optional[bool] = False
82
- ) -> str:
91
+ def flip_name(name: str | None, strip_digits: bool | None = False) -> str:
83
92
  """Flip a name between left/right sides, useful for
84
93
  mirroring bone names.
85
94
 
86
95
  :param name: Bone name to flip.
87
- :type name: typing.Optional[str]
96
+ :type name: str | None
88
97
  :param strip_digits: Whether to remove .### suffix.
89
- :type strip_digits: typing.Optional[bool]
98
+ :type strip_digits: bool | None
90
99
  :return: The flipped name.
91
100
  :rtype: str
92
101
  """
93
102
 
94
103
  ...
95
104
 
96
- def is_path_builtin(path):
97
- """ """
105
+ def is_path_builtin(path: str | None) -> bool:
106
+ """Returns True if the path is one of the built-in paths used by Blender.
107
+
108
+ :param path: Path you want to check if it is in the built-in settings directory
109
+ :type path: str | None
110
+ :rtype: bool
111
+ """
98
112
 
99
113
  ...
100
114
 
@@ -113,53 +127,70 @@ def keyconfig_set(filepath, report=None):
113
127
 
114
128
  ...
115
129
 
116
- def keyconfig_set(filepath, report):
130
+ def keyconfig_set(filepath, report=None):
117
131
  """ """
118
132
 
119
133
  ...
120
134
 
121
135
  def load_scripts(
122
- reload_scripts: typing.Optional[bool] = False,
123
- refresh_scripts: typing.Optional[bool] = False,
124
- extensions: typing.Optional[bool] = True,
136
+ reload_scripts: bool | None = False,
137
+ refresh_scripts: bool | None = False,
138
+ extensions: bool | None = True,
125
139
  ):
126
140
  """Load scripts and run each modules register function.
127
141
 
128
142
  :param reload_scripts: Causes all scripts to have their unregister method
129
143
  called before loading.
130
- :type reload_scripts: typing.Optional[bool]
144
+ :type reload_scripts: bool | None
131
145
  :param refresh_scripts: only load scripts which are not already loaded
132
146
  as modules.
133
- :type refresh_scripts: typing.Optional[bool]
147
+ :type refresh_scripts: bool | None
134
148
  :param extensions: Loads additional scripts (add-ons & app-templates).
135
- :type extensions: typing.Optional[bool]
149
+ :type extensions: bool | None
136
150
  """
137
151
 
138
152
  ...
139
153
 
140
- def load_scripts(reload_scripts, refresh_scripts, extensions):
141
- """ """
154
+ def load_scripts(
155
+ reload_scripts: bool | None = False,
156
+ refresh_scripts: bool | None = False,
157
+ extensions: bool | None = True,
158
+ ):
159
+ """Load scripts and run each modules register function.
160
+
161
+ :param reload_scripts: Causes all scripts to have their unregister method
162
+ called before loading.
163
+ :type reload_scripts: bool | None
164
+ :param refresh_scripts: only load scripts which are not already loaded
165
+ as modules.
166
+ :type refresh_scripts: bool | None
167
+ :param extensions: Loads additional scripts (add-ons & app-templates).
168
+ :type extensions: bool | None
169
+ """
142
170
 
143
171
  ...
144
172
 
145
- def load_scripts_extensions(reload_scripts):
146
- """ """
173
+ def load_scripts_extensions(reload_scripts: bool | None = False):
174
+ """Load extensions scripts (add-ons and app-templates)
175
+
176
+ :param reload_scripts: Causes all scripts to have their unregister method
177
+ called before loading.
178
+ :type reload_scripts: bool | None
179
+ """
147
180
 
148
181
  ...
149
182
 
150
183
  def make_rna_paths(
151
- struct_name: typing.Optional[str],
152
- prop_name: typing.Optional[str],
153
- enum_name: typing.Optional[str],
184
+ struct_name: str | None, prop_name: str | None, enum_name: str | None
154
185
  ):
155
186
  """Create RNA "paths" from given names.
156
187
 
157
188
  :param struct_name: Name of a RNA struct (like e.g. "Scene").
158
- :type struct_name: typing.Optional[str]
189
+ :type struct_name: str | None
159
190
  :param prop_name: Name of a RNA struct's property.
160
- :type prop_name: typing.Optional[str]
191
+ :type prop_name: str | None
161
192
  :param enum_name: Name of a RNA enum identifier.
162
- :type enum_name: typing.Optional[str]
193
+ :type enum_name: str | None
163
194
  :return: A triple of three "RNA paths"
164
195
  (most_complete_path, "struct.prop", "struct.prop:'enum'").
165
196
  If no enum_name is given, the third element will always be void.
@@ -167,8 +198,21 @@ def make_rna_paths(
167
198
 
168
199
  ...
169
200
 
170
- def make_rna_paths(struct_name, prop_name, enum_name):
171
- """ """
201
+ def make_rna_paths(
202
+ struct_name: str | None, prop_name: str | None, enum_name: str | None
203
+ ):
204
+ """Create RNA "paths" from given names.
205
+
206
+ :param struct_name: Name of a RNA struct (like e.g. "Scene").
207
+ :type struct_name: str | None
208
+ :param prop_name: Name of a RNA struct's property.
209
+ :type prop_name: str | None
210
+ :param enum_name: Name of a RNA enum identifier.
211
+ :type enum_name: str | None
212
+ :return: A triple of three "RNA paths"
213
+ (most_complete_path, "struct.prop", "struct.prop:'enum'").
214
+ If no enum_name is given, the third element will always be void.
215
+ """
172
216
 
173
217
  ...
174
218
 
@@ -182,8 +226,13 @@ def manual_language_code(default="en") -> str:
182
226
 
183
227
  ...
184
228
 
185
- def manual_language_code(default):
186
- """ """
229
+ def manual_language_code(default="en") -> str:
230
+ """
231
+
232
+ :return: The language code used for user manual URL component based on the current language user-preference,
233
+ falling back to the default when unavailable.
234
+ :rtype: str
235
+ """
187
236
 
188
237
  ...
189
238
 
@@ -197,24 +246,31 @@ def manual_map():
197
246
 
198
247
  ...
199
248
 
200
- def modules_from_path(
201
- path: typing.Optional[str], loaded_modules: typing.Optional[set]
202
- ) -> list:
249
+ def modules_from_path(path: str | None, loaded_modules: set | None) -> list:
203
250
  """Load all modules in a path and return them as a list.
204
251
 
205
252
  :param path: this path is scanned for scripts and packages.
206
- :type path: typing.Optional[str]
253
+ :type path: str | None
207
254
  :param loaded_modules: already loaded module names, files matching these
208
255
  names will be ignored.
209
- :type loaded_modules: typing.Optional[set]
256
+ :type loaded_modules: set | None
210
257
  :return: all loaded modules.
211
258
  :rtype: list
212
259
  """
213
260
 
214
261
  ...
215
262
 
216
- def modules_from_path(path, loaded_modules):
217
- """ """
263
+ def modules_from_path(path: str | None, loaded_modules: set | None) -> list:
264
+ """Load all modules in a path and return them as a list.
265
+
266
+ :param path: this path is scanned for scripts and packages.
267
+ :type path: str | None
268
+ :param loaded_modules: already loaded module names, files matching these
269
+ names will be ignored.
270
+ :type loaded_modules: set | None
271
+ :return: all loaded modules.
272
+ :rtype: list
273
+ """
218
274
 
219
275
  ...
220
276
 
@@ -223,24 +279,30 @@ def preset_find(name, preset_path, display_name=False, ext=".py"):
223
279
 
224
280
  ...
225
281
 
226
- def preset_find(name, preset_path, display_name, ext):
282
+ def preset_find(name, preset_path, display_name=False, ext=".py"):
227
283
  """ """
228
284
 
229
285
  ...
230
286
 
231
- def preset_paths(subdir: typing.Optional[str]) -> list:
287
+ def preset_paths(subdir: str | None) -> list:
232
288
  """Returns a list of paths for a specific preset.
233
289
 
234
290
  :param subdir: preset subdirectory (must not be an absolute path).
235
- :type subdir: typing.Optional[str]
291
+ :type subdir: str | None
236
292
  :return: script paths.
237
293
  :rtype: list
238
294
  """
239
295
 
240
296
  ...
241
297
 
242
- def preset_paths(subdir):
243
- """ """
298
+ def preset_paths(subdir: str | None) -> list:
299
+ """Returns a list of paths for a specific preset.
300
+
301
+ :param subdir: preset subdirectory (must not be an absolute path).
302
+ :type subdir: str | None
303
+ :return: script paths.
304
+ :rtype: list
305
+ """
244
306
 
245
307
  ...
246
308
 
@@ -250,7 +312,7 @@ def refresh_script_paths():
250
312
  ...
251
313
 
252
314
  def refresh_script_paths():
253
- """ """
315
+ """Run this after creating new script paths to update sys.path"""
254
316
 
255
317
  ...
256
318
 
@@ -276,13 +338,14 @@ def register_classes_factory(classes):
276
338
  ...
277
339
 
278
340
  def register_classes_factory(classes):
279
- """ """
341
+ """Utility function to create register and unregister functions
342
+ which simply registers and unregisters a sequence of classes.
343
+
344
+ """
280
345
 
281
346
  ...
282
347
 
283
- def register_cli_command(
284
- id: typing.Optional[str], execute: typing.Optional[typing.Callable]
285
- ):
348
+ def register_cli_command(id: str | None, execute: typing.Callable | None):
286
349
  """Register a command, accessible via the (-c / --command) command-line argument.Custom CommandsRegistering commands makes it possible to conveniently expose command line
287
350
  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
288
351
  generates a --help message for your command.
@@ -290,11 +353,11 @@ def register_cli_command(
290
353
  :param id: The command identifier (must pass an str.isidentifier check).
291
354
 
292
355
  If the id is already registered, a warning is printed and the command is inaccessible to prevent accidents invoking the wrong command.
293
- :type id: typing.Optional[str]
356
+ :type id: str | None
294
357
  :param execute: Callback, taking a single list of strings and returns an int.
295
358
  The arguments are built from all command-line arguments following the command id.
296
359
  The return value should be 0 for success, 1 on failure (specific error codes from the os module can also be used).
297
- :type execute: typing.Optional[typing.Callable]
360
+ :type execute: typing.Callable | None
298
361
  :return: The command handle which can be passed to `unregister_cli_command`.
299
362
  """
300
363
 
@@ -311,62 +374,76 @@ def register_manual_map(manual_hook):
311
374
  ...
312
375
 
313
376
  def register_submodule_factory(
314
- module_name: typing.Optional[str],
315
- submodule_names: typing.Optional[typing.List[str]],
377
+ module_name: str | None, submodule_names: list[str] | None
316
378
  ):
317
379
  """Utility function to create register and unregister functions
318
380
  which simply load submodules,
319
381
  calling their register & unregister functions.
320
382
 
321
383
  :param module_name: The module name, typically __name__.
322
- :type module_name: typing.Optional[str]
384
+ :type module_name: str | None
323
385
  :param submodule_names: List of submodule names to load and unload.
324
- :type submodule_names: typing.Optional[typing.List[str]]
386
+ :type submodule_names: list[str] | None
325
387
  :return: register and unregister functions.
326
388
  """
327
389
 
328
390
  ...
329
391
 
330
- def register_submodule_factory(module_name, submodule_names):
331
- """ """
392
+ def register_submodule_factory(
393
+ module_name: str | None, submodule_names: list[str] | None
394
+ ):
395
+ """Utility function to create register and unregister functions
396
+ which simply load submodules,
397
+ calling their register & unregister functions.
398
+
399
+ :param module_name: The module name, typically __name__.
400
+ :type module_name: str | None
401
+ :param submodule_names: List of submodule names to load and unload.
402
+ :type submodule_names: list[str] | None
403
+ :return: register and unregister functions.
404
+ """
332
405
 
333
406
  ...
334
407
 
335
408
  def register_tool(
336
- tool_cls,
337
- after=None,
338
- separator: typing.Optional[bool] = False,
339
- group: typing.Optional[bool] = False,
409
+ tool_cls, after=None, separator: bool | None = False, group: bool | None = False
340
410
  ):
341
411
  """Register a tool in the toolbar.
342
412
 
343
413
  :param after: Optional identifiers this tool will be added after.
344
414
  :param separator: When true, add a separator before this tool.
345
- :type separator: typing.Optional[bool]
415
+ :type separator: bool | None
346
416
  :param group: When true, add a new nested group of tools.
347
- :type group: typing.Optional[bool]
417
+ :type group: bool | None
348
418
  """
349
419
 
350
420
  ...
351
421
 
352
- def register_tool(tool_cls, after, separator, group):
353
- """ """
422
+ def register_tool(
423
+ tool_cls, after=None, separator: bool | None = False, group: bool | None = False
424
+ ):
425
+ """Register a tool in the toolbar.
426
+
427
+ :param after: Optional identifiers this tool will be added after.
428
+ :param separator: When true, add a separator before this tool.
429
+ :type separator: bool | None
430
+ :param group: When true, add a new nested group of tools.
431
+ :type group: bool | None
432
+ """
354
433
 
355
434
  ...
356
435
 
357
436
  def resource_path(
358
- type: typing.Optional[str],
359
- major: typing.Optional[int] = None[0],
360
- minor: typing.Optional[str] = None[1],
437
+ type: str | None, major: int | None = None[0], minor: str | None = None[1]
361
438
  ) -> str:
362
439
  """Return the base path for storing system files.
363
440
 
364
441
  :param type: string in ['USER', 'LOCAL', 'SYSTEM'].
365
- :type type: typing.Optional[str]
442
+ :type type: str | None
366
443
  :param major: major version, defaults to current.
367
- :type major: typing.Optional[int]
444
+ :type major: int | None
368
445
  :param minor: minor version, defaults to current.
369
- :type minor: typing.Optional[str]
446
+ :type minor: str | None
370
447
  :return: the resource path (not necessarily existing).
371
448
  :rtype: str
372
449
  """
@@ -379,92 +456,130 @@ def script_path_user():
379
456
  ...
380
457
 
381
458
  def script_path_user():
382
- """ """
459
+ """returns the env var and falls back to home dir or None"""
383
460
 
384
461
  ...
385
462
 
386
463
  def script_paths(
387
- subdir: typing.Optional[str] = None,
388
- user_pref: typing.Optional[bool] = True,
389
- check_all: typing.Optional[bool] = False,
464
+ subdir: str | None = None,
465
+ user_pref: bool | None = True,
466
+ check_all: bool | None = False,
390
467
  use_user=True,
391
468
  ) -> list:
392
469
  """Returns a list of valid script paths.
393
470
 
394
471
  :param subdir: Optional subdir.
395
- :type subdir: typing.Optional[str]
472
+ :type subdir: str | None
396
473
  :param user_pref: Include the user preference script paths.
397
- :type user_pref: typing.Optional[bool]
474
+ :type user_pref: bool | None
398
475
  :param check_all: Include local, user and system paths rather just the paths Blender uses.
399
- :type check_all: typing.Optional[bool]
476
+ :type check_all: bool | None
400
477
  :return: script paths.
401
478
  :rtype: list
402
479
  """
403
480
 
404
481
  ...
405
482
 
406
- def script_paths(subdir, user_pref, check_all, use_user):
407
- """ """
483
+ def script_paths(
484
+ subdir: str | None = None,
485
+ user_pref: bool | None = True,
486
+ check_all: bool | None = False,
487
+ use_user=True,
488
+ ) -> list:
489
+ """Returns a list of valid script paths.
490
+
491
+ :param subdir: Optional subdir.
492
+ :type subdir: str | None
493
+ :param user_pref: Include the user preference script paths.
494
+ :type user_pref: bool | None
495
+ :param check_all: Include local, user and system paths rather just the paths Blender uses.
496
+ :type check_all: bool | None
497
+ :return: script paths.
498
+ :rtype: list
499
+ """
408
500
 
409
501
  ...
410
502
 
411
503
  def script_paths_pref():
412
- """ """
504
+ """Returns a list of user preference script directories."""
413
505
 
414
506
  ...
415
507
 
416
- def smpte_from_frame(frame: typing.Optional[int], fps=None, fps_base=None) -> str:
508
+ def smpte_from_frame(frame: int | None, fps=None, fps_base=None) -> str:
417
509
  """Returns an SMPTE formatted string from the frame:
418
510
  HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
419
511
 
420
512
  :param frame: frame number.
421
- :type frame: typing.Optional[int]
513
+ :type frame: int | None
422
514
  :return: the frame string.
423
515
  :rtype: str
424
516
  """
425
517
 
426
518
  ...
427
519
 
428
- def smpte_from_frame(frame, fps, fps_base):
429
- """ """
520
+ def smpte_from_frame(frame: int | None, fps=None, fps_base=None) -> str:
521
+ """Returns an SMPTE formatted string from the frame:
522
+ HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
523
+
524
+ :param frame: frame number.
525
+ :type frame: int | None
526
+ :return: the frame string.
527
+ :rtype: str
528
+ """
430
529
 
431
530
  ...
432
531
 
433
- def smpte_from_seconds(
434
- time: typing.Optional[typing.Union[int, float]], fps=None, fps_base=None
435
- ) -> str:
532
+ def smpte_from_seconds(time: int | float | None, fps=None, fps_base=None) -> str:
436
533
  """Returns an SMPTE formatted string from the time:
437
534
  HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
438
535
 
439
536
  :param time: time in seconds.
440
- :type time: typing.Optional[typing.Union[int, float]]
537
+ :type time: int | float | None
441
538
  :return: the frame string.
442
539
  :rtype: str
443
540
  """
444
541
 
445
542
  ...
446
543
 
447
- def smpte_from_seconds(time, fps, fps_base):
448
- """ """
544
+ def smpte_from_seconds(time: int | float | None, fps=None, fps_base=None) -> str:
545
+ """Returns an SMPTE formatted string from the time:
546
+ HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
547
+
548
+ :param time: time in seconds.
549
+ :type time: int | float | None
550
+ :return: the frame string.
551
+ :rtype: str
552
+ """
449
553
 
450
554
  ...
451
555
 
452
- def time_from_frame(frame, fps, fps_base):
453
- """ """
556
+ def time_from_frame(frame: int | None, fps=None, fps_base=None):
557
+ """Returns the time from a frame number .If fps and fps_base are not given the current scene is used.
558
+
559
+ :param frame: number.
560
+ :type frame: int | None
561
+ :return: the time in seconds.
562
+ """
454
563
 
455
564
  ...
456
565
 
457
- def time_to_frame(time, fps, fps_base):
458
- """ """
566
+ def time_to_frame(time, fps=None, fps_base=None) -> float:
567
+ """Returns a float frame number from a time given in seconds or
568
+ as a datetime.timedelta object.If fps and fps_base are not given the current scene is used.
569
+
570
+ :param time: time in seconds.
571
+ :return: the frame.
572
+ :rtype: float
573
+ """
459
574
 
460
575
  ...
461
576
 
462
- def unescape_identifier(string: typing.Optional[str]) -> str:
577
+ def unescape_identifier(string: str | None) -> str:
463
578
  """Simple string un-escape function used for animation paths.
464
579
  This performs the reverse of escape_identifier.
465
580
 
466
581
  :param string: text
467
- :type string: typing.Optional[str]
582
+ :type string: str | None
468
583
  :return: The un-escaped string.
469
584
  :rtype: str
470
585
  """
@@ -510,24 +625,33 @@ def unregister_tool(tool_cls):
510
625
  ...
511
626
 
512
627
  def user_resource(
513
- resource_type,
514
- path: typing.Optional[str] = "",
515
- create: typing.Optional[bool] = False,
628
+ resource_type, path: str | None = "", create: bool | None = False
516
629
  ) -> str:
517
630
  """Return a user resource path (normally from the users home directory).
518
631
 
519
632
  :param path: Optional subdirectory.
520
- :type path: typing.Optional[str]
633
+ :type path: str | None
521
634
  :param create: Treat the path as a directory and create
522
635
  it if its not existing.
523
- :type create: typing.Optional[bool]
636
+ :type create: bool | None
524
637
  :return: a path.
525
638
  :rtype: str
526
639
  """
527
640
 
528
641
  ...
529
642
 
530
- def user_resource(resource_type, path, create):
531
- """ """
643
+ def user_resource(
644
+ resource_type, path: str | None = "", create: bool | None = False
645
+ ) -> str:
646
+ """Return a user resource path (normally from the users home directory).
647
+
648
+ :param path: Optional subdirectory.
649
+ :type path: str | None
650
+ :param create: Treat the path as a directory and create
651
+ it if its not existing.
652
+ :type create: bool | None
653
+ :return: a path.
654
+ :rtype: str
655
+ """
532
656
 
533
657
  ...