fake-bge-module 20250317__py3-none-any.whl → 20260201__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 (395) hide show
  1. {animsys_refactor → _animsys_refactor}/__init__.pyi +7 -6
  2. {bl_console_utils → _bl_console_utils}/__init__.pyi +1 -0
  3. {bl_console_utils → _bl_console_utils}/autocomplete/__init__.pyi +1 -0
  4. {bl_console_utils → _bl_console_utils}/autocomplete/complete_calltip/__init__.pyi +1 -13
  5. {bl_console_utils → _bl_console_utils}/autocomplete/complete_import/__init__.pyi +1 -5
  6. {bl_console_utils → _bl_console_utils}/autocomplete/complete_namespace/__init__.pyi +3 -13
  7. {bl_console_utils → _bl_console_utils}/autocomplete/intellisense/__init__.pyi +1 -10
  8. {bl_i18n_utils → _bl_i18n_utils}/__init__.pyi +2 -0
  9. _bl_i18n_utils/bl_extract_messages/__init__.pyi +28 -0
  10. {bl_i18n_utils → _bl_i18n_utils}/merge_po/__init__.pyi +2 -1
  11. {bl_i18n_utils → _bl_i18n_utils}/settings/__init__.pyi +10 -7
  12. {bl_i18n_utils → _bl_i18n_utils}/utils/__init__.pyi +53 -50
  13. _bl_i18n_utils/utils_cli/__init__.pyi +11 -0
  14. _bl_i18n_utils/utils_languages_menu/__init__.pyi +6 -0
  15. {bl_i18n_utils → _bl_i18n_utils}/utils_rtl/__init__.pyi +3 -2
  16. _bl_i18n_utils/utils_spell_check/__init__.pyi +22 -0
  17. {bl_previews_utils → _bl_previews_utils}/__init__.pyi +1 -0
  18. _bl_previews_utils/bl_previews_render/__init__.pyi +14 -0
  19. {bl_rna_utils → _bl_rna_utils}/__init__.pyi +1 -0
  20. {bl_rna_utils → _bl_rna_utils}/data_path/__init__.pyi +3 -2
  21. {bl_text_utils → _bl_text_utils}/__init__.pyi +1 -0
  22. _bl_text_utils/external_editor/__init__.pyi +6 -0
  23. {bl_ui_utils → _bl_ui_utils}/__init__.pyi +1 -0
  24. {bl_ui_utils → _bl_ui_utils}/layout/__init__.pyi +2 -1
  25. _blendfile_header/__init__.pyi +48 -0
  26. _bpy_internal/__init__.pyi +5 -1
  27. _bpy_internal/addons/__init__.pyi +1 -0
  28. _bpy_internal/addons/cli/__init__.pyi +2 -1
  29. _bpy_internal/assets/__init__.pyi +5 -0
  30. _bpy_internal/assets/remote_library_listing/__init__.pyi +5 -0
  31. _bpy_internal/assets/remote_library_listing/blender_asset_library_openapi/__init__.pyi +13 -0
  32. _bpy_internal/disk_file_hash_service/__init__.pyi +19 -0
  33. _bpy_internal/disk_file_hash_service/backend_sqlite/__init__.pyi +48 -0
  34. _bpy_internal/disk_file_hash_service/hash_service/__init__.pyi +64 -0
  35. _bpy_internal/disk_file_hash_service/types/__init__.pyi +53 -0
  36. _bpy_internal/extensions/__init__.pyi +1 -0
  37. _bpy_internal/extensions/junction_module/__init__.pyi +8 -7
  38. _bpy_internal/extensions/stale_file_manager/__init__.pyi +9 -8
  39. _bpy_internal/extensions/wheel_manager/__init__.pyi +6 -5
  40. {bl_i18n_utils/utils_languages_menu → _bpy_internal/filesystem}/__init__.pyi +2 -2
  41. _bpy_internal/filesystem/locking/__init__.pyi +28 -0
  42. _bpy_internal/grease_pencil/__init__.pyi +1 -0
  43. _bpy_internal/grease_pencil/stroke/__init__.pyi +22 -6
  44. _bpy_internal/platform/__init__.pyi +5 -0
  45. _bpy_internal/platform/freedesktop/__init__.pyi +21 -0
  46. _bpy_internal/system_info/__init__.pyi +1 -0
  47. _bpy_internal/system_info/text_generate_runtime/__init__.pyi +2 -1
  48. _bpy_internal/system_info/url_prefill_runtime/__init__.pyi +2 -1
  49. _bpy_internal/system_info/url_prefill_startup/__init__.pyi +3 -2
  50. {bpy_restrict_state → _bpy_restrict_state}/__init__.pyi +1 -0
  51. _bpy_types/__init__.pyi +1635 -0
  52. {console_python → _console_python}/__init__.pyi +8 -7
  53. _console_shell/__init__.pyi +10 -0
  54. {graphviz_export → _graphviz_export}/__init__.pyi +3 -2
  55. _keyingsets_utils/__init__.pyi +21 -0
  56. {rna_info → _rna_info}/__init__.pyi +32 -27
  57. {rna_xml → _rna_xml}/__init__.pyi +7 -6
  58. addon_utils/__init__.pyi +13 -25
  59. aud/__init__.pyi +133 -155
  60. bge/__init__.pyi +1 -0
  61. bge/app/__init__.pyi +1 -0
  62. bge/constraints/__init__.pyi +22 -51
  63. bge/types/__init__.pyi +618 -1913
  64. bge_extras/__init__.pyi +1 -0
  65. bge_extras/logger/__init__.pyi +4 -3
  66. bgui/__init__.pyi +1 -0
  67. bgui/frame/__init__.pyi +1 -0
  68. bgui/frame_button/__init__.pyi +1 -0
  69. bgui/image/__init__.pyi +1 -1
  70. bgui/image_button/__init__.pyi +1 -0
  71. bgui/label/__init__.pyi +1 -0
  72. bgui/list_box/__init__.pyi +1 -1
  73. bgui/progress_bar/__init__.pyi +2 -1
  74. bgui/system/__init__.pyi +3 -5
  75. bgui/text_block/__init__.pyi +1 -0
  76. bgui/text_input/__init__.pyi +9 -8
  77. bgui/theme/__init__.pyi +4 -3
  78. bgui/widget/__init__.pyi +5 -4
  79. bl_app_override/__init__.pyi +4 -3
  80. bl_app_override/helpers/__init__.pyi +3 -2
  81. bl_app_template_utils/__init__.pyi +5 -4
  82. bl_app_templates_system/Game_Engine/__init__.pyi +5 -4
  83. bl_app_templates_system/Storyboarding/__init__.pyi +11 -0
  84. bl_app_templates_system/__init__.pyi +2 -0
  85. bl_keymap_utils/__init__.pyi +1 -0
  86. bl_keymap_utils/io/__init__.pyi +10 -9
  87. bl_keymap_utils/keymap_from_toolbar/__init__.pyi +2 -1
  88. bl_keymap_utils/keymap_hierarchy/__init__.pyi +2 -1
  89. bl_keymap_utils/platform_helpers/__init__.pyi +3 -2
  90. bl_keymap_utils/versioning/__init__.pyi +2 -1
  91. bl_math/__init__.pyi +4 -13
  92. bl_operators/__init__.pyi +4 -2
  93. bl_operators/add_mesh_torus/__init__.pyi +9 -9
  94. bl_operators/anim/__init__.pyi +90 -62
  95. bl_operators/assets/__init__.pyi +14 -18
  96. bl_operators/bmesh/__init__.pyi +1 -0
  97. bl_operators/bmesh/find_adjacent/__init__.pyi +12 -9
  98. bl_operators/bone_selection_sets/__init__.pyi +34 -60
  99. bl_operators/clip/__init__.pyi +39 -57
  100. bl_operators/connect_to_output/__init__.pyi +20 -18
  101. bl_operators/console/__init__.pyi +17 -25
  102. bl_operators/constraint/__init__.pyi +15 -21
  103. bl_operators/copy_global_transform/__init__.pyi +261 -0
  104. bl_operators/file/__init__.pyi +13 -17
  105. bl_operators/freestyle/__init__.pyi +15 -21
  106. bl_operators/geometry_nodes/__init__.pyi +30 -36
  107. bl_operators/grease_pencil/__init__.pyi +5 -5
  108. bl_operators/image/__init__.pyi +14 -22
  109. bl_operators/image_as_planes/__init__.pyi +36 -42
  110. bl_operators/mesh/__init__.pyi +8 -53
  111. bl_operators/node/__init__.pyi +375 -92
  112. bl_operators/node_editor/__init__.pyi +1 -0
  113. bl_operators/node_editor/node_functions/__init__.pyi +10 -9
  114. bl_operators/object/__init__.pyi +57 -98
  115. bl_operators/object_align/__init__.pyi +8 -8
  116. bl_operators/object_quick_effects/__init__.pyi +15 -21
  117. bl_operators/object_randomize_transform/__init__.pyi +6 -6
  118. bl_operators/presets/__init__.pyi +46 -94
  119. bl_operators/rigidbody/__init__.pyi +12 -16
  120. bl_operators/screen_play_rendered_anim/__init__.pyi +5 -5
  121. bl_operators/sequencer/__init__.pyi +40 -54
  122. bl_operators/spreadsheet/__init__.pyi +7 -7
  123. bl_operators/userpref/__init__.pyi +69 -117
  124. bl_operators/uvcalc_follow_active/__init__.pyi +8 -8
  125. bl_operators/uvcalc_lightmap/__init__.pyi +12 -12
  126. bl_operators/uvcalc_transform/__init__.pyi +39 -28
  127. bl_operators/vertexpaint_dirt/__init__.pyi +7 -7
  128. bl_operators/view3d/__init__.pyi +31 -43
  129. bl_operators/wm/__init__.pyi +139 -231
  130. bl_operators/world/__init__.pyi +6 -6
  131. bl_ui/__init__.pyi +18 -17
  132. bl_ui/anim/__init__.pyi +5 -5
  133. bl_ui/asset_shelf/__init__.pyi +5 -5
  134. bl_ui/generic_ui_list/__init__.pyi +11 -25
  135. bl_ui/node_add_menu/__init__.pyi +281 -12
  136. bl_ui/node_add_menu_compositor/__init__.pyi +135 -91
  137. bl_ui/node_add_menu_geometry/__init__.pyi +407 -263
  138. bl_ui/node_add_menu_shader/__init__.pyi +67 -67
  139. bl_ui/node_add_menu_texture/__init__.pyi +25 -69
  140. bl_ui/properties_animviz/__init__.pyi +3 -2
  141. bl_ui/properties_collection/__init__.pyi +20 -30
  142. bl_ui/properties_constraint/__init__.pyi +228 -450
  143. bl_ui/properties_data_armature/__init__.pyi +45 -79
  144. bl_ui/properties_data_bone/__init__.pyi +33 -51
  145. bl_ui/properties_data_camera/__init__.pyi +43 -75
  146. bl_ui/properties_data_curve/__init__.pyi +42 -101
  147. bl_ui/properties_data_curves/__init__.pyi +21 -35
  148. bl_ui/properties_data_empty/__init__.pyi +8 -10
  149. bl_ui/properties_data_grease_pencil/__init__.pyi +49 -87
  150. bl_ui/properties_data_lattice/__init__.pyi +12 -18
  151. bl_ui/properties_data_light/__init__.pyi +28 -46
  152. bl_ui/properties_data_lightprobe/__init__.pyi +35 -61
  153. bl_ui/properties_data_mesh/__init__.pyi +73 -120
  154. bl_ui/properties_data_metaball/__init__.pyi +16 -26
  155. bl_ui/properties_data_modifier/__init__.pyi +34 -39
  156. bl_ui/properties_data_pointcloud/__init__.pyi +17 -27
  157. bl_ui/properties_data_shaderfx/__init__.pyi +4 -4
  158. bl_ui/properties_data_speaker/__init__.pyi +15 -25
  159. bl_ui/properties_data_volume/__init__.pyi +22 -38
  160. bl_ui/properties_freestyle/__init__.pyi +79 -127
  161. bl_ui/properties_game/__init__.pyi +88 -84
  162. bl_ui/properties_grease_pencil_common/__init__.pyi +33 -190
  163. bl_ui/properties_mask_common/__init__.pyi +33 -45
  164. bl_ui/properties_material/__init__.pyi +52 -111
  165. bl_ui/properties_material_gpencil/__init__.pyi +48 -68
  166. bl_ui/properties_object/__init__.pyi +123 -93
  167. bl_ui/properties_output/__init__.pyi +103 -81
  168. bl_ui/properties_paint_common/__init__.pyi +78 -59
  169. bl_ui/properties_particle/__init__.pyi +160 -262
  170. bl_ui/properties_physics_cloth/__init__.pyi +36 -62
  171. bl_ui/properties_physics_common/__init__.pyi +11 -11
  172. bl_ui/properties_physics_dynamicpaint/__init__.pyi +81 -123
  173. bl_ui/properties_physics_field/__init__.pyi +35 -53
  174. bl_ui/properties_physics_fluid/__init__.pyi +106 -160
  175. bl_ui/properties_physics_geometry_nodes/__init__.pyi +6 -6
  176. bl_ui/properties_physics_rigidbody/__init__.pyi +28 -42
  177. bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +44 -68
  178. bl_ui/properties_physics_softbody/__init__.pyi +38 -66
  179. bl_ui/properties_render/__init__.pyi +267 -259
  180. bl_ui/properties_scene/__init__.pyi +69 -72
  181. bl_ui/properties_strip/__init__.pyi +744 -0
  182. bl_ui/properties_strip_modifier/__init__.pyi +45 -0
  183. bl_ui/properties_texture/__init__.pyi +69 -122
  184. bl_ui/properties_view_layer/__init__.pyi +97 -51
  185. bl_ui/properties_workspace/__init__.pyi +12 -18
  186. bl_ui/properties_world/__init__.pyi +33 -53
  187. bl_ui/space_clip/__init__.pyi +231 -311
  188. bl_ui/space_console/__init__.pyi +14 -24
  189. bl_ui/space_dopesheet/__init__.pyi +193 -125
  190. bl_ui/space_filebrowser/__init__.pyi +107 -131
  191. bl_ui/space_graph/__init__.pyi +93 -80
  192. bl_ui/space_image/__init__.pyi +207 -291
  193. bl_ui/space_info/__init__.pyi +14 -24
  194. bl_ui/space_logic/__init__.pyi +14 -22
  195. bl_ui/space_nla/__init__.pyi +63 -69
  196. bl_ui/space_node/__init__.pyi +215 -154
  197. bl_ui/space_outliner/__init__.pyi +65 -61
  198. bl_ui/space_properties/__init__.pyi +41 -16
  199. bl_ui/space_sequencer/__init__.pyi +276 -980
  200. bl_ui/space_spreadsheet/__init__.pyi +27 -23
  201. bl_ui/space_statusbar/__init__.pyi +4 -4
  202. bl_ui/space_text/__init__.pyi +39 -73
  203. bl_ui/space_time/__init__.pyi +33 -78
  204. bl_ui/space_toolsystem_common/__init__.pyi +31 -28
  205. bl_ui/space_toolsystem_toolbar/__init__.pyi +67 -43
  206. bl_ui/space_topbar/__init__.pyi +68 -111
  207. bl_ui/space_userpref/__init__.pyi +310 -445
  208. bl_ui/space_view3d/__init__.pyi +667 -1122
  209. bl_ui/space_view3d_sidebar/__init__.pyi +127 -0
  210. bl_ui/space_view3d_toolbar/__init__.pyi +237 -966
  211. bl_ui/utils/__init__.pyi +4 -3
  212. blend_render_info/__init__.pyi +4 -2
  213. blf/__init__.pyi +92 -59
  214. bmesh/__init__.pyi +4 -10
  215. bmesh/geometry/__init__.pyi +2 -4
  216. bmesh/ops/__init__.pyi +442 -815
  217. bmesh/types/__init__.pyi +377 -720
  218. bmesh/utils/__init__.pyi +20 -45
  219. bpy/__init__.pyi +2 -1
  220. bpy/app/__init__.pyi +96 -90
  221. bpy/app/handlers/__init__.pyi +24 -19
  222. bpy/app/icons/__init__.pyi +2 -7
  223. bpy/app/timers/__init__.pyi +5 -18
  224. bpy/app/translations/__init__.pyi +21 -35
  225. bpy/msgbus/__init__.pyi +20 -9
  226. bpy/ops/__init__.pyi +21 -3
  227. bpy/ops/action/__init__.pyi +121 -226
  228. bpy/ops/anim/__init__.pyi +204 -358
  229. bpy/ops/armature/__init__.pyi +129 -249
  230. bpy/ops/asset/__init__.pyi +82 -111
  231. bpy/ops/bge_bricknodes/__init__.pyi +61 -0
  232. bpy/ops/boid/__init__.pyi +44 -50
  233. bpy/ops/bricknodes/__init__.pyi +37 -0
  234. bpy/ops/brush/__init__.pyi +33 -120
  235. bpy/ops/buttons/__init__.pyi +27 -83
  236. bpy/ops/cachefile/__init__.pyi +16 -74
  237. bpy/ops/camera/__init__.pyi +3 -13
  238. bpy/ops/clip/__init__.pyi +278 -558
  239. bpy/ops/cloth/__init__.pyi +2 -6
  240. bpy/ops/collection/__init__.pyi +34 -44
  241. bpy/ops/console/__init__.pyi +70 -111
  242. bpy/ops/constraint/__init__.pyi +34 -102
  243. bpy/ops/curve/__init__.pyi +163 -315
  244. bpy/ops/curves/__init__.pyi +163 -189
  245. bpy/ops/cycles/__init__.pyi +8 -18
  246. bpy/ops/dpaint/__init__.pyi +21 -30
  247. bpy/ops/ed/__init__.pyi +59 -103
  248. bpy/ops/export_anim/__init__.pyi +4 -11
  249. bpy/ops/export_scene/__init__.pyi +29 -174
  250. bpy/ops/extensions/__init__.pyi +102 -194
  251. bpy/ops/file/__init__.pyi +166 -272
  252. bpy/ops/fluid/__init__.pyi +78 -86
  253. bpy/ops/font/__init__.pyi +73 -164
  254. bpy/ops/geometry/__init__.pyi +33 -144
  255. bpy/ops/gizmogroup/__init__.pyi +8 -14
  256. bpy/ops/gpencil/__init__.pyi +31 -58
  257. bpy/ops/graph/__init__.pyi +176 -411
  258. bpy/ops/grease_pencil/__init__.pyi +416 -639
  259. bpy/ops/image/__init__.pyi +148 -492
  260. bpy/ops/import_anim/__init__.pyi +5 -18
  261. bpy/ops/import_curve/__init__.pyi +4 -6
  262. bpy/ops/import_scene/__init__.pyi +22 -49
  263. bpy/ops/info/__init__.pyi +27 -43
  264. bpy/ops/lattice/__init__.pyi +26 -43
  265. bpy/ops/logic/__init__.pyi +49 -122
  266. bpy/ops/logic_nodes/__init__.pyi +461 -0
  267. bpy/ops/marker/__init__.pyi +24 -60
  268. bpy/ops/mask/__init__.pyi +118 -222
  269. bpy/ops/material/__init__.pyi +19 -18
  270. bpy/ops/mball/__init__.pyi +13 -39
  271. bpy/ops/mesh/__init__.pyi +409 -1264
  272. bpy/ops/nla/__init__.pyi +140 -232
  273. bpy/ops/node/__init__.pyi +1189 -807
  274. bpy/ops/object/__init__.pyi +806 -1659
  275. bpy/ops/outliner/__init__.pyi +284 -432
  276. bpy/ops/paint/__init__.pyi +189 -381
  277. bpy/ops/paintcurve/__init__.pyi +29 -44
  278. bpy/ops/palette/__init__.pyi +23 -34
  279. bpy/ops/particle/__init__.pyi +135 -201
  280. bpy/ops/pointcloud/__init__.pyi +23 -42
  281. bpy/ops/pose/__init__.pyi +195 -310
  282. bpy/ops/poselib/__init__.pyi +45 -73
  283. bpy/ops/preferences/__init__.pyi +89 -221
  284. bpy/ops/ptcache/__init__.pyi +32 -39
  285. bpy/ops/render/__init__.pyi +36 -83
  286. bpy/ops/rigidbody/__init__.pyi +47 -78
  287. bpy/ops/scene/__init__.pyi +169 -222
  288. bpy/ops/screen/__init__.pyi +146 -259
  289. bpy/ops/script/__init__.pyi +9 -15
  290. bpy/ops/sculpt/__init__.pyi +194 -354
  291. bpy/ops/sculpt_curves/__init__.pyi +21 -29
  292. bpy/ops/sequencer/__init__.pyi +586 -836
  293. bpy/ops/sound/__init__.pyi +25 -131
  294. bpy/ops/spreadsheet/__init__.pyi +34 -21
  295. bpy/ops/surface/__init__.pyi +7 -54
  296. bpy/ops/text/__init__.pyi +166 -281
  297. bpy/ops/text_editor/__init__.pyi +2 -6
  298. bpy/ops/texture/__init__.pyi +20 -22
  299. bpy/ops/transform/__init__.pyi +108 -445
  300. bpy/ops/ui/__init__.pyi +157 -219
  301. bpy/ops/uilist/__init__.pyi +4 -16
  302. bpy/ops/uv/__init__.pyi +291 -347
  303. bpy/ops/view2d/__init__.pyi +29 -88
  304. bpy/ops/view3d/__init__.pyi +238 -438
  305. bpy/ops/wm/__init__.pyi +651 -1510
  306. bpy/ops/workspace/__init__.pyi +42 -44
  307. bpy/ops/world/__init__.pyi +12 -13
  308. bpy/path/__init__.pyi +5 -36
  309. bpy/props/__init__.pyi +395 -259
  310. bpy/{_typing → stub_internal}/__init__.pyi +1 -0
  311. bpy/{_typing → stub_internal}/rna_enums/__init__.pyi +214 -114
  312. bpy/types/__init__.pyi +93285 -103831
  313. bpy/utils/__init__.pyi +46 -104
  314. bpy/utils/previews/__init__.pyi +7 -15
  315. bpy/utils/units/__init__.pyi +6 -15
  316. bpy_extras/__init__.pyi +1 -0
  317. bpy_extras/anim_utils/__init__.pyi +32 -23
  318. bpy_extras/asset_utils/__init__.pyi +1 -0
  319. bpy_extras/bmesh_utils/__init__.pyi +2 -2
  320. bpy_extras/id_map_utils/__init__.pyi +15 -6
  321. bpy_extras/image_utils/__init__.pyi +3 -11
  322. bpy_extras/io_utils/__init__.pyi +22 -38
  323. bpy_extras/keyconfig_utils/__init__.pyi +5 -4
  324. bpy_extras/mesh_utils/__init__.pyi +3 -14
  325. bpy_extras/node_shader_utils/__init__.pyi +63 -70
  326. bpy_extras/node_utils/__init__.pyi +4 -3
  327. bpy_extras/object_utils/__init__.pyi +6 -19
  328. bpy_extras/view3d_utils/__init__.pyi +1 -18
  329. bpy_extras/wm_utils/__init__.pyi +1 -0
  330. bpy_extras/wm_utils/progress_report/__init__.pyi +12 -11
  331. {fake_bge_module-20250317.dist-info → fake_bge_module-20260201.dist-info}/METADATA +9 -3
  332. fake_bge_module-20260201.dist-info/RECORD +414 -0
  333. {fake_bge_module-20250317.dist-info → fake_bge_module-20260201.dist-info}/WHEEL +1 -1
  334. {fake_bge_module-20250317.dist-info → fake_bge_module-20260201.dist-info}/top_level.txt +16 -16
  335. freestyle/__init__.pyi +1 -0
  336. freestyle/chainingiterators/__init__.pyi +41 -60
  337. freestyle/functions/__init__.pyi +56 -194
  338. freestyle/predicates/__init__.pyi +11 -61
  339. freestyle/shaders/__init__.pyi +95 -156
  340. freestyle/types/__init__.pyi +306 -941
  341. freestyle/utils/ContextFunctions/__init__.pyi +4 -24
  342. freestyle/utils/__init__.pyi +46 -36
  343. gpu/__init__.pyi +84 -5
  344. gpu/capabilities/__init__.pyi +1 -21
  345. gpu/matrix/__init__.pyi +16 -24
  346. gpu/platform/__init__.pyi +3 -7
  347. gpu/select/__init__.pyi +2 -1
  348. gpu/shader/__init__.pyi +43 -9
  349. gpu/state/__init__.pyi +66 -44
  350. gpu/texture/__init__.pyi +4 -5
  351. gpu/types/__init__.pyi +216 -216
  352. gpu_extras/__init__.pyi +1 -0
  353. gpu_extras/batch/__init__.pyi +2 -5
  354. gpu_extras/presets/__init__.pyi +9 -10
  355. idprop/__init__.pyi +17 -0
  356. idprop/types/__init__.pyi +18 -17
  357. imbuf/__init__.pyi +13 -9
  358. imbuf/types/__init__.pyi +10 -23
  359. keyingsets_builtins/__init__.pyi +51 -93
  360. mathutils/__init__.pyi +296 -2255
  361. mathutils/bvhtree/__init__.pyi +22 -29
  362. mathutils/geometry/__init__.pyi +83 -132
  363. mathutils/interpolate/__init__.pyi +7 -5
  364. mathutils/kdtree/__init__.pyi +5 -14
  365. mathutils/noise/__init__.pyi +62 -106
  366. nodeitems_builtins/__init__.pyi +5 -4
  367. nodeitems_utils/__init__.pyi +10 -9
  368. rna_keymap_ui/__init__.pyi +7 -6
  369. rna_prop_ui/__init__.pyi +14 -13
  370. _bpy_internal/freedesktop/__init__.pyi +0 -20
  371. bgl/__init__.pyi +0 -4235
  372. bl_i18n_utils/bl_extract_messages/__init__.pyi +0 -24
  373. bl_i18n_utils/utils_cli/__init__.pyi +0 -10
  374. bl_previews_utils/bl_previews_render/__init__.pyi +0 -11
  375. bl_text_utils/external_editor/__init__.pyi +0 -5
  376. bpy_types/__init__.pyi +0 -29
  377. console_shell/__init__.pyi +0 -9
  378. fake_bge_module-20250317.dist-info/RECORD +0 -395
  379. keyingsets_utils/__init__.pyi +0 -18
  380. {animsys_refactor → _animsys_refactor}/py.typed +0 -0
  381. {bgl → _bl_console_utils}/py.typed +0 -0
  382. {bl_console_utils → _bl_i18n_utils}/py.typed +0 -0
  383. {bl_i18n_utils → _bl_previews_utils}/py.typed +0 -0
  384. {bl_previews_utils → _bl_rna_utils}/py.typed +0 -0
  385. {bl_rna_utils → _bl_text_utils}/py.typed +0 -0
  386. {bl_text_utils → _bl_ui_utils}/py.typed +0 -0
  387. {bl_ui_utils → _blendfile_header}/py.typed +0 -0
  388. {bpy_restrict_state → _bpy_restrict_state}/py.typed +0 -0
  389. {bpy_types → _bpy_types}/py.typed +0 -0
  390. {console_python → _console_python}/py.typed +0 -0
  391. {console_shell → _console_shell}/py.typed +0 -0
  392. {graphviz_export → _graphviz_export}/py.typed +0 -0
  393. {keyingsets_utils → _keyingsets_utils}/py.typed +0 -0
  394. {rna_info → _rna_info}/py.typed +0 -0
  395. {rna_xml → _rna_xml}/py.typed +0 -0
bpy/utils/__init__.pyi CHANGED
@@ -13,54 +13,46 @@ bpy.utils.units.rst
13
13
  import typing
14
14
  import collections.abc
15
15
  import typing_extensions
16
+ import numpy.typing as npt
16
17
  import bpy.types
17
18
 
18
19
  from . import previews as previews
19
20
  from . import units as units
20
21
 
21
- def app_template_paths(*, path: str | None = None):
22
+ def app_template_paths(*, path: str | None = None) -> None:
22
23
  """Returns valid application template paths.
23
24
 
24
25
  :param path: Optional subdir.
25
- :type path: str | None
26
26
  :return: App template paths.
27
27
  """
28
28
 
29
29
  def blend_paths(
30
- absolute: bool = False, packed: bool = False, local: bool = False
30
+ *, absolute: bool = False, packed: bool = False, local: bool = False
31
31
  ) -> list[str]:
32
32
  """Returns a list of paths to external files referenced by the loaded .blend file.
33
33
 
34
34
  :param absolute: When true the paths returned are made absolute.
35
- :type absolute: bool
36
- :param packed: When true skip file paths for packed data.
37
- :type packed: bool
35
+ :param packed: When true include file paths for packed data.
38
36
  :param local: When true skip linked library paths.
39
- :type local: bool
40
37
  :return: path list.
41
- :rtype: list[str]
42
38
  """
43
39
 
44
40
  def escape_identifier(string: str) -> str:
45
41
  """Simple string escaping function used for animation paths.
46
42
 
47
43
  :param string: text
48
- :type string: str
49
44
  :return: The escaped string.
50
- :rtype: str
51
45
  """
52
46
 
53
- def execfile(filepath: str, *, mod: None | None = None):
47
+ def execfile(filepath: str, *, mod: None | None = None) -> None:
54
48
  """Execute a file path as a Python script.
55
49
 
56
50
  :param filepath: Path of the script to execute.
57
- :type filepath: str
58
51
  :param mod: Optional cached module, the result of a previous execution.
59
- :type mod: None | None
60
52
  :return: The module which can be passed back in as mod.
61
53
  """
62
54
 
63
- def expose_bundled_modules():
55
+ def expose_bundled_modules() -> None:
64
56
  """For Blender as a Python module, add bundled VFX library python bindings
65
57
  to sys.path. These may be used instead of dedicated packages, to ensure
66
58
  the libraries are compatible with Blender.
@@ -71,69 +63,54 @@ def extension_path_user(package: str, *, path: str = "", create: bool = False) -
71
63
  """Return a user writable directory associated with an extension.
72
64
 
73
65
  :param package: The __package__ of the extension.
74
- :type package: str
75
66
  :param path: Optional subdirectory.
76
- :type path: str
77
67
  :param create: Treat the path as a directory and create it if its not existing.
78
- :type create: bool
79
68
  :return: a path.
80
- :rtype: str
81
69
  """
82
70
 
83
- def flip_name(name: str, strip_digits: bool = False) -> str:
71
+ def flip_name(name: str, *, strip_digits: bool = False) -> str:
84
72
  """Flip a name between left/right sides, useful for
85
73
  mirroring bone names.
86
74
 
87
75
  :param name: Bone name to flip.
88
- :type name: str
89
76
  :param strip_digits: Whether to remove .### suffix.
90
- :type strip_digits: bool
91
77
  :return: The flipped name.
92
- :rtype: str
93
78
  """
94
79
 
95
80
  def is_path_builtin(path: str) -> bool:
96
81
  """Returns True if the path is one of the built-in paths used by Blender.
97
82
 
98
83
  :param path: Path you want to check if it is in the built-in settings directory
99
- :type path: str
100
- :rtype: bool
101
84
  """
102
85
 
103
86
  def is_path_extension(path: str) -> bool:
104
87
  """Returns True if the path is from an extensions repository.
105
88
 
106
89
  :param path: Path to check if it is within an extension repository.
107
- :type path: str
108
- :rtype: bool
109
90
  """
110
91
 
111
- def keyconfig_init(): ...
112
- def keyconfig_set(filepath, *, report=None): ...
92
+ def keyconfig_init() -> None: ...
93
+ def keyconfig_set(filepath, *, report=None) -> None: ...
113
94
  def load_scripts(
114
95
  *,
115
96
  reload_scripts: bool = False,
116
97
  refresh_scripts: bool = False,
117
98
  extensions: bool = True,
118
- ):
99
+ ) -> None:
119
100
  """Load scripts and run each modules register function.
120
101
 
121
102
  :param reload_scripts: Causes all scripts to have their unregister method
122
103
  called before loading.
123
- :type reload_scripts: bool
124
104
  :param refresh_scripts: only load scripts which are not already loaded
125
105
  as modules.
126
- :type refresh_scripts: bool
127
106
  :param extensions: Loads additional scripts (add-ons & app-templates).
128
- :type extensions: bool
129
107
  """
130
108
 
131
- def load_scripts_extensions(*, reload_scripts: bool = False):
109
+ def load_scripts_extensions(*, reload_scripts: bool = False) -> None:
132
110
  """Load extensions scripts (add-ons and app-templates)
133
111
 
134
112
  :param reload_scripts: Causes all scripts to have their unregister method
135
113
  called before loading.
136
- :type reload_scripts: bool
137
114
  """
138
115
 
139
116
  def make_rna_paths(
@@ -142,15 +119,11 @@ def make_rna_paths(
142
119
  """Create RNA "paths" from given names.
143
120
 
144
121
  :param struct_name: Name of a RNA struct (like e.g. "Scene").
145
- :type struct_name: str
146
- :param prop_name: Name of a RNA struct's property.
147
- :type prop_name: str
122
+ :param prop_name: Name of a RNA structs property.
148
123
  :param enum_name: Name of a RNA enum identifier.
149
- :type enum_name: str
150
124
  :return: A triple of three "RNA paths"
151
- (most_complete_path, "struct.prop", "struct.prop:'enum'").
125
+ (most_complete_path, "struct.prop", "struct.prop:enum").
152
126
  If no enum_name is given, the third element will always be void.
153
- :rtype: tuple[str, str, str]
154
127
  """
155
128
 
156
129
  def manual_language_code(default="en") -> str:
@@ -158,32 +131,27 @@ def manual_language_code(default="en") -> str:
158
131
 
159
132
  :return: The language code used for user manual URL component based on the current language user-preference,
160
133
  falling back to the default when unavailable.
161
- :rtype: str
162
134
  """
163
135
 
164
- def manual_map(): ...
165
- def modules_from_path(path: str, loaded_modules) -> list:
136
+ def manual_map() -> None: ...
137
+ def modules_from_path(path: str, loaded_modules: set) -> list:
166
138
  """Load all modules in a path and return them as a list.
167
139
 
168
140
  :param path: this path is scanned for scripts and packages.
169
- :type path: str
170
141
  :param loaded_modules: already loaded module names, files matching these
171
142
  names will be ignored.
172
143
  :return: all loaded modules.
173
- :rtype: list
174
144
  """
175
145
 
176
- def preset_find(name, preset_path, *, display_name=False, ext=".py"): ...
146
+ def preset_find(name, preset_path, *, display_name=False, ext=".py") -> None: ...
177
147
  def preset_paths(subdir: str) -> list[str]:
178
148
  """Returns a list of paths for a specific preset.
179
149
 
180
150
  :param subdir: preset subdirectory (must not be an absolute path).
181
- :type subdir: str
182
151
  :return: Script paths.
183
- :rtype: list[str]
184
152
  """
185
153
 
186
- def refresh_script_paths():
154
+ def refresh_script_paths() -> None:
187
155
  """Run this after creating new script paths to update sys.path"""
188
156
 
189
157
  def register_class(
@@ -199,21 +167,27 @@ def register_class(
199
167
  | bpy.types.FileHandler
200
168
  | bpy.types.PropertyGroup
201
169
  | bpy.types.AddonPreferences
170
+ | bpy.types.NodeTree
171
+ | bpy.types.Node
172
+ | bpy.types.NodeSocket
202
173
  ],
203
- ):
174
+ ) -> None:
204
175
  """Register a subclass of a Blender type class.
205
176
 
206
177
  :param cls: Registerable Blender class type.
207
- :type cls: type[bpy.types.Panel | bpy.types.UIList | bpy.types.Menu | bpy.types.Header | bpy.types.Operator | bpy.types.KeyingSetInfo | bpy.types.RenderEngine | bpy.types.AssetShelf | bpy.types.FileHandler | bpy.types.PropertyGroup | bpy.types.AddonPreferences]
208
178
  """
209
179
 
210
- def register_classes_factory(classes):
180
+ def register_classes_factory(
181
+ classes: collections.abc.Sequence[typing.Any],
182
+ ) -> tuple[collections.abc.Callable[None], collections.abc.Callable[None]]:
211
183
  """Utility function to create register and unregister functions
212
184
  which simply registers and unregisters a sequence of classes.
213
185
 
186
+ :param classes: Sequence of classes to register and unregister.
187
+ :return: register and unregister functions.
214
188
  """
215
189
 
216
- def register_cli_command(id: str, execute: collections.abc.Callable):
190
+ def register_cli_command(id: str, execute: collections.abc.Callable) -> None:
217
191
  """Register a command, accessible via the (-c / --command) command-line argument.Custom CommandsRegistering commands makes it possible to conveniently expose command line
218
192
  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
219
193
  generates a --help message for your command.
@@ -221,15 +195,15 @@ def register_cli_command(id: str, execute: collections.abc.Callable):
221
195
  :param id: The command identifier (must pass an str.isidentifier check).
222
196
 
223
197
  If the id is already registered, a warning is printed and the command is inaccessible to prevent accidents invoking the wrong command.
224
- :type id: str
225
198
  :param execute: Callback, taking a single list of strings and returns an int.
226
199
  The arguments are built from all command-line arguments following the command id.
227
200
  The return value should be 0 for success, 1 on failure (specific error codes from the os module can also be used).
228
- :type execute: collections.abc.Callable
229
201
  :return: The command handle which can be passed to `unregister_cli_command`.
202
+
203
+ This uses Pythons capsule type however the result should be considered an opaque handle only used for unregistering.
230
204
  """
231
205
 
232
- def register_manual_map(manual_hook): ...
206
+ def register_manual_map(manual_hook) -> None: ...
233
207
  def register_preset_path(path: str) -> bool:
234
208
  """Register a preset search path.
235
209
 
@@ -241,9 +215,7 @@ def register_preset_path(path: str) -> bool:
241
215
  When the __init__.py is in the same location as a presets directory.
242
216
  For example an operators preset would be located under: presets/operator/{operator.id}/
243
217
  where operator.id is the bl_idname of the operator.
244
- :type path: str
245
218
  :return: success
246
- :rtype: bool
247
219
  """
248
220
 
249
221
  def register_submodule_factory(
@@ -254,48 +226,37 @@ def register_submodule_factory(
254
226
  calling their register & unregister functions.
255
227
 
256
228
  :param module_name: The module name, typically __name__.
257
- :type module_name: str
258
229
  :param submodule_names: List of submodule names to load and unload.
259
- :type submodule_names: list[str]
260
230
  :return: register and unregister functions.
261
- :rtype: tuple[collections.abc.Callable[None], collections.abc.Callable[None]]
262
231
  """
263
232
 
264
233
  def register_tool(
265
234
  tool_cls: type[bpy.types.WorkSpaceTool],
266
235
  *,
267
- after: None | collections.abc.Sequence[str] | None = None,
236
+ after: None | collections.abc.Sequence[str] | set[str] | None = None,
268
237
  separator: bool = False,
269
238
  group: bool = False,
270
- ):
239
+ ) -> None:
271
240
  """Register a tool in the toolbar.
272
241
 
273
242
  :param tool_cls: A tool subclass.
274
- :type tool_cls: type[bpy.types.WorkSpaceTool]
275
243
  :param after: Optional identifiers this tool will be added after.
276
- :type after: None | collections.abc.Sequence[str] | None
277
244
  :param separator: When true, add a separator before this tool.
278
- :type separator: bool
279
245
  :param group: When true, add a new nested group of tools.
280
- :type group: bool
281
246
  """
282
247
 
283
248
  def resource_path(
284
- type: str, major: int = bpy.app.version[0], minor: str = bpy.app.version[1]
249
+ type: str, *, major: int = bpy.app.version[0], minor: int = bpy.app.version[1]
285
250
  ) -> str:
286
251
  """Return the base path for storing system files.
287
252
 
288
- :param type: string in ['USER', 'LOCAL', 'SYSTEM'].
289
- :type type: str
253
+ :param type: string in [USER, LOCAL, SYSTEM].
290
254
  :param major: major version, defaults to current.
291
- :type major: int
292
255
  :param minor: minor version, defaults to current.
293
- :type minor: str
294
256
  :return: the resource path (not necessarily existing).
295
- :rtype: str
296
257
  """
297
258
 
298
- def script_path_user():
259
+ def script_path_user() -> None:
299
260
  """returns the env var and falls back to home dir or None"""
300
261
 
301
262
  def script_paths(
@@ -309,23 +270,17 @@ def script_paths(
309
270
  """Returns a list of valid script paths.
310
271
 
311
272
  :param subdir: Optional subdir.
312
- :type subdir: str | None
313
273
  :param user_pref: Include the user preference script paths.
314
- :type user_pref: bool
315
274
  :param check_all: Include local, user and system paths rather just the paths Blender uses.
316
- :type check_all: bool
317
275
  :param use_user: Include user paths
318
- :type use_user: bool
319
276
  :param use_system_environment: Include BLENDER_SYSTEM_SCRIPTS variable path
320
- :type use_system_environment: bool
321
277
  :return: script paths.
322
- :rtype: list[str]
323
278
  """
324
279
 
325
- def script_paths_pref():
280
+ def script_paths_pref() -> None:
326
281
  """Returns a list of user preference script directories."""
327
282
 
328
- def script_paths_system_environment():
283
+ def script_paths_system_environment() -> None:
329
284
  """Returns a list of system script directories from environment variables."""
330
285
 
331
286
  def smpte_from_frame(frame: float, *, fps=None, fps_base=None) -> str:
@@ -333,9 +288,7 @@ def smpte_from_frame(frame: float, *, fps=None, fps_base=None) -> str:
333
288
  HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
334
289
 
335
290
  :param frame: frame number.
336
- :type frame: float
337
291
  :return: the frame string.
338
- :rtype: str
339
292
  """
340
293
 
341
294
  def smpte_from_seconds(time: float, *, fps=None, fps_base=None) -> str:
@@ -343,16 +296,13 @@ def smpte_from_seconds(time: float, *, fps=None, fps_base=None) -> str:
343
296
  HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
344
297
 
345
298
  :param time: time in seconds.
346
- :type time: float
347
299
  :return: the frame string.
348
- :rtype: str
349
300
  """
350
301
 
351
- def time_from_frame(frame: float, *, fps=None, fps_base=None):
302
+ def time_from_frame(frame: float, *, fps=None, fps_base=None) -> None:
352
303
  """Returns the time from a frame number .If fps and fps_base are not given the current scene is used.
353
304
 
354
305
  :param frame: number.
355
- :type frame: float
356
306
  :return: the time in seconds.
357
307
  """
358
308
 
@@ -361,9 +311,7 @@ def time_to_frame(time: float, *, fps=None, fps_base=None) -> float:
361
311
  as a datetime.timedelta object.If fps and fps_base are not given the current scene is used.
362
312
 
363
313
  :param time: time in seconds.
364
- :type time: float
365
314
  :return: The frame.
366
- :rtype: float
367
315
  """
368
316
 
369
317
  def unescape_identifier(string: str) -> str:
@@ -371,9 +319,7 @@ def unescape_identifier(string: str) -> str:
371
319
  This performs the reverse of `escape_identifier`.
372
320
 
373
321
  :param string: text
374
- :type string: str
375
322
  :return: The un-escaped string.
376
- :rtype: str
377
323
  """
378
324
 
379
325
  def unregister_class(
@@ -389,44 +335,40 @@ def unregister_class(
389
335
  | bpy.types.FileHandler
390
336
  | bpy.types.PropertyGroup
391
337
  | bpy.types.AddonPreferences
338
+ | bpy.types.NodeTree
339
+ | bpy.types.Node
340
+ | bpy.types.NodeSocket
392
341
  ],
393
- ):
342
+ ) -> None:
394
343
  """Unload the Python class from blender.
395
344
 
396
345
  :param cls: Blender type class,
397
346
  see `bpy.utils.register_class` for classes which can
398
347
  be registered.
399
- :type cls: type[bpy.types.Panel | bpy.types.UIList | bpy.types.Menu | bpy.types.Header | bpy.types.Operator | bpy.types.KeyingSetInfo | bpy.types.RenderEngine | bpy.types.AssetShelf | bpy.types.FileHandler | bpy.types.PropertyGroup | bpy.types.AddonPreferences]
400
348
  """
401
349
 
402
- def unregister_cli_command(handle):
350
+ def unregister_cli_command(handle) -> None:
403
351
  """Unregister a CLI command.
404
352
 
405
353
  :param handle: The return value of `register_cli_command`.
406
354
  """
407
355
 
408
- def unregister_manual_map(manual_hook): ...
356
+ def unregister_manual_map(manual_hook) -> None: ...
409
357
  def unregister_preset_path(path: str) -> bool:
410
358
  """Unregister a preset search path.
411
359
 
412
360
  :param path: preset directory (must be an absolute path).
413
361
 
414
362
  This must match the registered path exactly.
415
- :type path: str
416
363
  :return: success
417
- :rtype: bool
418
364
  """
419
365
 
420
- def unregister_tool(tool_cls): ...
366
+ def unregister_tool(tool_cls) -> None: ...
421
367
  def user_resource(resource_type: str, *, path: str = "", create: bool = False) -> str:
422
368
  """Return a user resource path (normally from the users home directory).
423
369
 
424
- :param resource_type: Resource type in ['DATAFILES', 'CONFIG', 'SCRIPTS', 'EXTENSIONS'].
425
- :type resource_type: str
370
+ :param resource_type: Resource type in [DATAFILES, CONFIG, SCRIPTS, EXTENSIONS].
426
371
  :param path: Optional subdirectory.
427
- :type path: str
428
372
  :param create: Treat the path as a directory and create it if its not existing.
429
- :type create: bool
430
373
  :return: a path.
431
- :rtype: str
432
374
  """
@@ -16,17 +16,18 @@ This allows scripts to generate their own previews, and use them as icons in UI
16
16
  import typing
17
17
  import collections.abc
18
18
  import typing_extensions
19
+ import numpy.typing as npt
19
20
  import bpy.types
20
21
 
21
- class ImagePreviewCollection:
22
- """Dictionary-like class of previews.This is a subclass of Python's built-in dict type,
22
+ class ImagePreviewCollection(dict[str, bpy.types.ImagePreview]):
23
+ """Dictionary-like class of previews.This is a subclass of Pythons built-in dict type,
23
24
  used to store multiple image previews.
24
25
  """
25
26
 
26
- def clear(self):
27
+ def clear(self) -> None:
27
28
  """Clear all previews."""
28
29
 
29
- def close(self):
30
+ def close(self) -> None:
30
31
  """Close the collection and clear all previews."""
31
32
 
32
33
  def load(
@@ -39,36 +40,27 @@ class ImagePreviewCollection:
39
40
  """Generate a new preview from given file path.
40
41
 
41
42
  :param name: The name (unique id) identifying the preview.
42
- :type name: str | None
43
43
  :param filepath: The file path to generate the preview from.
44
- :type filepath: bytes | str | None
45
- :param filetype: The type of file, needed to generate the preview in ['IMAGE', 'MOVIE', 'BLEND', 'FONT'].
46
- :type filetype: str | None
44
+ :param filetype: The type of file, needed to generate the preview in [IMAGE, MOVIE, BLEND, FONT, OBJECT_IO].
47
45
  :param force_reload: If True, force running thumbnail manager even if preview already exists in cache.
48
- :type force_reload: bool | None
49
46
  :return: The Preview matching given name, or a new empty one.
50
- :rtype: bpy.types.ImagePreview
51
47
  """
52
48
 
53
49
  def new(self, name: str | None) -> bpy.types.ImagePreview:
54
50
  """Generate a new empty preview.
55
51
 
56
52
  :param name: The name (unique id) identifying the preview.
57
- :type name: str | None
58
53
  :return: The Preview matching given name, or a new empty one.
59
- :rtype: bpy.types.ImagePreview
60
54
  """
61
55
 
62
56
  def new() -> ImagePreviewCollection:
63
57
  """
64
58
 
65
59
  :return: a new preview collection.
66
- :rtype: ImagePreviewCollection
67
60
  """
68
61
 
69
- def remove(pcoll: ImagePreviewCollection | None):
62
+ def remove(pcoll: ImagePreviewCollection | None) -> None:
70
63
  """Remove the specified previews collection.
71
64
 
72
65
  :param pcoll: Preview collection to close.
73
- :type pcoll: ImagePreviewCollection | None
74
66
  """
@@ -6,11 +6,13 @@ This module contains some data/methods regarding units handling.
6
6
  import typing
7
7
  import collections.abc
8
8
  import typing_extensions
9
+ import numpy.typing as npt
9
10
 
10
11
  def to_string(
11
12
  unit_system: str | None,
12
13
  unit_category: str | None,
13
14
  value: float | None,
15
+ *,
14
16
  precision: int | None = 3,
15
17
  split_unit: bool | None = False,
16
18
  compatible_unit: bool | None = False,
@@ -18,47 +20,36 @@ def to_string(
18
20
  """Convert a given input float value into a string with units.
19
21
 
20
22
  :param unit_system: The unit system, from `bpy.utils.units.systems`.
21
- :type unit_system: str | None
22
23
  :param unit_category: The category of data we are converting (length, area, rotation, etc.),
23
24
  from `bpy.utils.units.categories`.
24
- :type unit_category: str | None
25
25
  :param value: The value to convert to a string.
26
- :type value: float | None
27
26
  :param precision: Number of digits after the comma.
28
- :type precision: int | None
29
27
  :param split_unit: Whether to use several units if needed (1m1cm), or always only one (1.01m).
30
- :type split_unit: bool | None
31
- :param compatible_unit: Whether to use keyboard-friendly units (1m2) or nicer utf-8 ones (1m²).
32
- :type compatible_unit: bool | None
28
+ :param compatible_unit: Whether to use keyboard-friendly units (1m2) or nicer UTF8 ones (1m).
33
29
  :return: The converted string.
34
- :rtype: str
35
30
  """
36
31
 
37
32
  def to_value(
38
33
  unit_system: str | None,
39
34
  unit_category: str | None,
40
35
  str_input: str | None,
36
+ *,
41
37
  str_ref_unit: None | str | None = None,
42
38
  ) -> float:
43
39
  """Convert a given input string into a float value.
44
40
 
45
41
  :param unit_system: The unit system, from `bpy.utils.units.systems`.
46
- :type unit_system: str | None
47
42
  :param unit_category: The category of data we are converting (length, area, rotation, etc.),
48
43
  from `bpy.utils.units.categories`.
49
- :type unit_category: str | None
50
44
  :param str_input: The string to convert to a float value.
51
- :type str_input: str | None
52
45
  :param str_ref_unit: A reference string from which to extract a default unit, if none is found in str_input.
53
- :type str_ref_unit: None | str | None
54
46
  :return: The converted/interpreted value.
55
- :rtype: float
56
47
  """
57
48
 
58
49
  categories: typing.Any
59
- """ Constant value bpy.utils.units.categories(NONE='NONE', LENGTH='LENGTH', AREA='AREA', VOLUME='VOLUME', MASS='MASS', ROTATION='ROTATION', TIME='TIME', TIME_ABSOLUTE='TIME_ABSOLUTE', VELOCITY='VELOCITY', ACCELERATION='ACCELERATION', CAMERA='CAMERA', POWER='POWER', TEMPERATURE='TEMPERATURE', WAVELENGTH='WAVELENGTH', COLOR_TEMPERATURE='COLOR_TEMPERATURE', FREQUENCY='FREQUENCY')
50
+ """ Constant value bpy.utils.units.categories(NONE=NONE, LENGTH=LENGTH, AREA=AREA, VOLUME=VOLUME, MASS=MASS, ROTATION=ROTATION, TIME=TIME, TIME_ABSOLUTE=TIME_ABSOLUTE, VELOCITY=VELOCITY, ACCELERATION=ACCELERATION, CAMERA=CAMERA, POWER=POWER, TEMPERATURE=TEMPERATURE, WAVELENGTH=WAVELENGTH, COLOR_TEMPERATURE=COLOR_TEMPERATURE, FREQUENCY=FREQUENCY)
60
51
  """
61
52
 
62
53
  systems: typing.Any
63
- """ Constant value bpy.utils.units.systems(NONE='NONE', METRIC='METRIC', IMPERIAL='IMPERIAL')
54
+ """ Constant value bpy.utils.units.systems(NONE=NONE, METRIC=METRIC, IMPERIAL=IMPERIAL)
64
55
  """
bpy_extras/__init__.pyi CHANGED
@@ -20,6 +20,7 @@ bpy_extras.id_map_utils.rst
20
20
  import typing
21
21
  import collections.abc
22
22
  import typing_extensions
23
+ import numpy.typing as npt
23
24
  from . import anim_utils as anim_utils
24
25
  from . import asset_utils as asset_utils
25
26
  from . import bmesh_utils as bmesh_utils