fake-bpy-module 20240516__py3-none-any.whl → 20240518__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 (549) hide show
  1. _bpy_internal/freedesktop/__init__.pyi +17 -84
  2. addon_utils/__init__.pyi +44 -38
  3. animsys_refactor/__init__.pyi +7 -27
  4. aud/__init__.pyi +8 -11
  5. bgl/__init__.pyi +121 -1812
  6. bl_app_override/__init__.pyi +8 -19
  7. bl_app_override/helpers/__init__.pyi +5 -23
  8. bl_app_template_utils/__init__.pyi +5 -17
  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 +16 -67
  14. bl_i18n_utils/merge_po/__init__.pyi +1 -4
  15. bl_i18n_utils/settings/__init__.pyi +6 -24
  16. bl_i18n_utils/utils/__init__.pyi +93 -122
  17. bl_i18n_utils/utils_cli/__init__.pyi +6 -29
  18. bl_i18n_utils/utils_languages_menu/__init__.pyi +1 -4
  19. bl_i18n_utils/utils_rtl/__init__.pyi +8 -2
  20. bl_keymap_utils/io/__init__.pyi +9 -40
  21. bl_keymap_utils/keymap_from_toolbar/__init__.pyi +2 -2
  22. bl_keymap_utils/keymap_hierarchy/__init__.pyi +1 -4
  23. bl_keymap_utils/platform_helpers/__init__.pyi +2 -6
  24. bl_keymap_utils/versioning/__init__.pyi +1 -4
  25. bl_operators/__init__.pyi +2 -9
  26. bl_operators/add_mesh_torus/__init__.pyi +128 -59
  27. bl_operators/anim/__init__.pyi +1001 -398
  28. bl_operators/assets/__init__.pyi +376 -152
  29. bl_operators/bmesh/find_adjacent/__init__.pyi +10 -37
  30. bl_operators/clip/__init__.pyi +1264 -532
  31. bl_operators/console/__init__.pyi +626 -242
  32. bl_operators/constraint/__init__.pyi +502 -201
  33. bl_operators/file/__init__.pyi +376 -150
  34. bl_operators/freestyle/__init__.pyi +501 -200
  35. bl_operators/geometry_nodes/__init__.pyi +514 -266
  36. bl_operators/image/__init__.pyi +621 -251
  37. bl_operators/mesh/__init__.pyi +376 -150
  38. bl_operators/node/__init__.pyi +1253 -516
  39. bl_operators/object/__init__.pyi +1879 -755
  40. bl_operators/object_align/__init__.pyi +129 -64
  41. bl_operators/object_quick_effects/__init__.pyi +504 -213
  42. bl_operators/object_randomize_transform/__init__.pyi +129 -54
  43. bl_operators/presets/__init__.pyi +3072 -1403
  44. bl_operators/rigidbody/__init__.pyi +376 -150
  45. bl_operators/screen_play_rendered_anim/__init__.pyi +127 -54
  46. bl_operators/sequencer/__init__.pyi +1010 -434
  47. bl_operators/spreadsheet/__init__.pyi +126 -50
  48. bl_operators/userpref/__init__.pyi +3253 -1267
  49. bl_operators/uvcalc_follow_active/__init__.pyi +128 -59
  50. bl_operators/uvcalc_lightmap/__init__.pyi +139 -80
  51. bl_operators/uvcalc_transform/__init__.pyi +297 -159
  52. bl_operators/vertexpaint_dirt/__init__.pyi +128 -59
  53. bl_operators/view3d/__init__.pyi +868 -342
  54. bl_operators/wm/__init__.pyi +5795 -2388
  55. bl_operators/world/__init__.pyi +126 -50
  56. bl_previews_utils/bl_previews_render/__init__.pyi +7 -34
  57. bl_rna_utils/data_path/__init__.pyi +8 -4
  58. bl_text_utils/external_editor/__init__.pyi +1 -4
  59. bl_ui/__init__.pyi +366 -269
  60. bl_ui/anim/__init__.pyi +164 -74
  61. bl_ui/asset_shelf/__init__.pyi +129 -56
  62. bl_ui/generic_ui_list/__init__.pyi +412 -163
  63. bl_ui/node_add_menu/__init__.pyi +171 -94
  64. bl_ui/node_add_menu_compositor/__init__.pyi +2918 -1353
  65. bl_ui/node_add_menu_geometry/__init__.pyi +7789 -3616
  66. bl_ui/node_add_menu_shader/__init__.pyi +1630 -790
  67. bl_ui/node_add_menu_texture/__init__.pyi +1459 -675
  68. bl_ui/properties_animviz/__init__.pyi +2 -16
  69. bl_ui/properties_collection/__init__.pyi +807 -379
  70. bl_ui/properties_constraint/__init__.pyi +10292 -4941
  71. bl_ui/properties_data_armature/__init__.pyi +1615 -753
  72. bl_ui/properties_data_bone/__init__.pyi +1284 -608
  73. bl_ui/properties_data_camera/__init__.pyi +1854 -927
  74. bl_ui/properties_data_curve/__init__.pyi +1927 -937
  75. bl_ui/properties_data_curves/__init__.pyi +806 -375
  76. bl_ui/properties_data_empty/__init__.pyi +257 -125
  77. bl_ui/properties_data_gpencil/__init__.pyi +2376 -1130
  78. bl_ui/properties_data_grease_pencil/__init__.pyi +1898 -894
  79. bl_ui/properties_data_lattice/__init__.pyi +388 -188
  80. bl_ui/properties_data_light/__init__.pyi +1540 -756
  81. bl_ui/properties_data_lightprobe/__init__.pyi +1666 -810
  82. bl_ui/properties_data_mesh/__init__.pyi +2707 -1235
  83. bl_ui/properties_data_metaball/__init__.pyi +644 -308
  84. bl_ui/properties_data_modifier/__init__.pyi +1353 -671
  85. bl_ui/properties_data_pointcloud/__init__.pyi +679 -316
  86. bl_ui/properties_data_shaderfx/__init__.pyi +129 -67
  87. bl_ui/properties_data_speaker/__init__.pyi +644 -316
  88. bl_ui/properties_data_volume/__init__.pyi +1028 -484
  89. bl_ui/properties_freestyle/__init__.pyi +3112 -1619
  90. bl_ui/properties_grease_pencil_common/__init__.pyi +2454 -1123
  91. bl_ui/properties_mask_common/__init__.pyi +1102 -523
  92. bl_ui/properties_material/__init__.pyi +2089 -1009
  93. bl_ui/properties_material_gpencil/__init__.pyi +1348 -635
  94. bl_ui/properties_object/__init__.pyi +1832 -873
  95. bl_ui/properties_output/__init__.pyi +2405 -1173
  96. bl_ui/properties_paint_common/__init__.pyi +416 -386
  97. bl_ui/properties_particle/__init__.pyi +6740 -3346
  98. bl_ui/properties_physics_cloth/__init__.pyi +1822 -907
  99. bl_ui/properties_physics_common/__init__.pyi +135 -98
  100. bl_ui/properties_physics_dynamicpaint/__init__.pyi +2817 -1391
  101. bl_ui/properties_physics_field/__init__.pyi +1282 -627
  102. bl_ui/properties_physics_fluid/__init__.pyi +3614 -1794
  103. bl_ui/properties_physics_geometry_nodes/__init__.pyi +129 -60
  104. bl_ui/properties_physics_rigidbody/__init__.pyi +1026 -515
  105. bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +1665 -811
  106. bl_ui/properties_physics_softbody/__init__.pyi +1922 -967
  107. bl_ui/properties_render/__init__.pyi +6843 -3367
  108. bl_ui/properties_scene/__init__.pyi +1924 -913
  109. bl_ui/properties_texture/__init__.pyi +3371 -1667
  110. bl_ui/properties_view_layer/__init__.pyi +2344 -1107
  111. bl_ui/properties_workspace/__init__.pyi +516 -244
  112. bl_ui/properties_world/__init__.pyi +1284 -630
  113. bl_ui/space_clip/__init__.pyi +10172 -4695
  114. bl_ui/space_console/__init__.pyi +940 -423
  115. bl_ui/space_dopesheet/__init__.pyi +4325 -2013
  116. bl_ui/space_filebrowser/__init__.pyi +4172 -1903
  117. bl_ui/space_graph/__init__.pyi +3107 -1394
  118. bl_ui/space_image/__init__.pyi +9764 -4614
  119. bl_ui/space_info/__init__.pyi +939 -421
  120. bl_ui/space_nla/__init__.pyi +2623 -1183
  121. bl_ui/space_node/__init__.pyi +3995 -1840
  122. bl_ui/space_outliner/__init__.pyi +2203 -991
  123. bl_ui/space_properties/__init__.pyi +386 -165
  124. bl_ui/space_sequencer/__init__.pyi +10809 -4978
  125. bl_ui/space_spreadsheet/__init__.pyi +130 -53
  126. bl_ui/space_statusbar/__init__.pyi +129 -52
  127. bl_ui/space_text/__init__.pyi +2457 -1100
  128. bl_ui/space_time/__init__.pyi +1034 -481
  129. bl_ui/space_toolsystem_common/__init__.pyi +56 -211
  130. bl_ui/space_toolsystem_toolbar/__init__.pyi +153 -882
  131. bl_ui/space_topbar/__init__.pyi +3982 -1805
  132. bl_ui/space_userpref/__init__.pyi +11383 -5290
  133. bl_ui/space_view3d/__init__.pyi +40873 -18532
  134. bl_ui/space_view3d_toolbar/__init__.pyi +12570 -6502
  135. bl_ui/temp_anim_layers/__init__.pyi +130 -62
  136. bl_ui/utils/__init__.pyi +28 -27
  137. bl_ui_utils/bug_report_url/__init__.pyi +1 -4
  138. bl_ui_utils/layout/__init__.pyi +1 -1
  139. blend_render_info/__init__.pyi +3 -10
  140. blf/__init__.pyi +4 -4
  141. bmesh/geometry/__init__.pyi +2 -3
  142. bmesh/ops/__init__.pyi +372 -419
  143. bmesh/types/__init__.pyi +39 -56
  144. bmesh/utils/__init__.pyi +10 -13
  145. bpy/app/__init__.pyi +4 -4
  146. bpy/app/handlers/__init__.pyi +36 -36
  147. bpy/app/icons/__init__.pyi +8 -8
  148. bpy/app/timers/__init__.pyi +10 -10
  149. bpy/app/translations/__init__.pyi +20 -22
  150. bpy/msgbus/__init__.pyi +2 -4
  151. bpy/ops/action/__init__.pyi +316 -394
  152. bpy/ops/anim/__init__.pyi +442 -548
  153. bpy/ops/armature/__init__.pyi +374 -470
  154. bpy/ops/asset/__init__.pyi +152 -184
  155. bpy/ops/bl_pkg/__init__.pyi +221 -272
  156. bpy/ops/boid/__init__.pyi +50 -66
  157. bpy/ops/brush/__init__.pyi +72 -90
  158. bpy/ops/buttons/__init__.pyi +132 -144
  159. bpy/ops/cachefile/__init__.pyi +128 -138
  160. bpy/ops/camera/__init__.pyi +26 -30
  161. bpy/ops/clip/__init__.pyi +777 -964
  162. bpy/ops/cloth/__init__.pyi +12 -14
  163. bpy/ops/collection/__init__.pyi +68 -86
  164. bpy/ops/console/__init__.pyi +158 -200
  165. bpy/ops/constraint/__init__.pyi +178 -214
  166. bpy/ops/curve/__init__.pyi +473 -576
  167. bpy/ops/curves/__init__.pyi +247 -302
  168. bpy/ops/cycles/__init__.pyi +28 -34
  169. bpy/ops/dpaint/__init__.pyi +34 -44
  170. bpy/ops/ed/__init__.pyi +126 -150
  171. bpy/ops/export_anim/__init__.pyi +22 -24
  172. bpy/ops/export_scene/__init__.pyi +302 -336
  173. bpy/ops/file/__init__.pyi +352 -432
  174. bpy/ops/fluid/__init__.pyi +90 -118
  175. bpy/ops/font/__init__.pyi +258 -304
  176. bpy/ops/geometry/__init__.pyi +100 -120
  177. bpy/ops/gizmogroup/__init__.pyi +22 -26
  178. bpy/ops/gpencil/__init__.pyi +1469 -1778
  179. bpy/ops/graph/__init__.pyi +644 -776
  180. bpy/ops/grease_pencil/__init__.pyi +597 -748
  181. bpy/ops/image/__init__.pyi +648 -744
  182. bpy/ops/import_anim/__init__.pyi +30 -32
  183. bpy/ops/import_curve/__init__.pyi +10 -12
  184. bpy/ops/import_scene/__init__.pyi +88 -96
  185. bpy/ops/info/__init__.pyi +60 -74
  186. bpy/ops/lattice/__init__.pyi +64 -80
  187. bpy/ops/marker/__init__.pyi +108 -130
  188. bpy/ops/mask/__init__.pyi +322 -402
  189. bpy/ops/material/__init__.pyi +18 -24
  190. bpy/ops/mball/__init__.pyi +70 -86
  191. bpy/ops/mesh/__init__.pyi +1986 -2322
  192. bpy/ops/nla/__init__.pyi +333 -411
  193. bpy/ops/node/__init__.pyi +886 -1100
  194. bpy/ops/object/__init__.pyi +2585 -3078
  195. bpy/ops/outliner/__init__.pyi +498 -636
  196. bpy/ops/paint/__init__.pyi +565 -680
  197. bpy/ops/paintcurve/__init__.pyi +64 -80
  198. bpy/ops/palette/__init__.pyi +50 -64
  199. bpy/ops/particle/__init__.pyi +267 -340
  200. bpy/ops/pose/__init__.pyi +336 -414
  201. bpy/ops/poselib/__init__.pyi +72 -90
  202. bpy/ops/preferences/__init__.pyi +386 -463
  203. bpy/ops/ptcache/__init__.pyi +46 -60
  204. bpy/ops/render/__init__.pyi +130 -154
  205. bpy/ops/rigidbody/__init__.pyi +102 -128
  206. bpy/ops/scene/__init__.pyi +280 -358
  207. bpy/ops/screen/__init__.pyi +382 -460
  208. bpy/ops/script/__init__.pyi +24 -30
  209. bpy/ops/sculpt/__init__.pyi +458 -532
  210. bpy/ops/sculpt_curves/__init__.pyi +41 -50
  211. bpy/ops/sequencer/__init__.pyi +1066 -1244
  212. bpy/ops/sound/__init__.pyi +216 -230
  213. bpy/ops/spreadsheet/__init__.pyi +30 -38
  214. bpy/ops/surface/__init__.pyi +108 -120
  215. bpy/ops/text/__init__.pyi +390 -476
  216. bpy/ops/text_editor/__init__.pyi +12 -14
  217. bpy/ops/texture/__init__.pyi +26 -34
  218. bpy/ops/transform/__init__.pyi +792 -878
  219. bpy/ops/ui/__init__.pyi +228 -294
  220. bpy/ops/uilist/__init__.pyi +32 -38
  221. bpy/ops/uv/__init__.pyi +602 -704
  222. bpy/ops/view2d/__init__.pyi +156 -184
  223. bpy/ops/view3d/__init__.pyi +582 -718
  224. bpy/ops/wm/__init__.pyi +2683 -2928
  225. bpy/ops/workspace/__init__.pyi +46 -60
  226. bpy/ops/world/__init__.pyi +12 -16
  227. bpy/path/__init__.pyi +179 -75
  228. bpy/props/__init__.pyi +261 -263
  229. bpy/types/__init__.pyi +17058 -26311
  230. bpy/utils/__init__.pyi +247 -179
  231. bpy/utils/previews/__init__.pyi +58 -28
  232. bpy/utils/units/__init__.pyi +20 -20
  233. bpy_extras/anim_utils/__init__.pyi +68 -29
  234. bpy_extras/asset_utils/__init__.pyi +0 -10
  235. bpy_extras/bmesh_utils/__init__.pyi +9 -6
  236. bpy_extras/extensions/junction_module/__init__.pyi +6 -8
  237. bpy_extras/id_map_utils/__init__.pyi +3 -3
  238. bpy_extras/image_utils/__init__.pyi +44 -11
  239. bpy_extras/io_utils/__init__.pyi +116 -41
  240. bpy_extras/keyconfig_utils/__init__.pyi +4 -11
  241. bpy_extras/mesh_utils/__init__.pyi +71 -19
  242. bpy_extras/node_shader_utils/__init__.pyi +52 -288
  243. bpy_extras/node_utils/__init__.pyi +10 -10
  244. bpy_extras/object_utils/__init__.pyi +71 -14
  245. bpy_extras/view3d_utils/__init__.pyi +80 -10
  246. bpy_extras/wm_utils/progress_report/__init__.pyi +15 -38
  247. bpy_restrict_state/__init__.pyi +1 -14
  248. bpy_types/__init__.pyi +4203 -1605
  249. console_python/__init__.pyi +12 -37
  250. console_shell/__init__.pyi +5 -24
  251. {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240518.dist-info}/METADATA +1 -1
  252. fake_bpy_module-20240518.dist-info/RECORD +353 -0
  253. freestyle/chainingiterators/__init__.pyi +14 -44
  254. freestyle/functions/__init__.pyi +7 -33
  255. freestyle/predicates/__init__.pyi +44 -217
  256. freestyle/shaders/__init__.pyi +2 -12
  257. freestyle/types/__init__.pyi +84 -96
  258. freestyle/utils/ContextFunctions/__init__.pyi +2 -2
  259. freestyle/utils/__init__.pyi +6 -18
  260. gpu/matrix/__init__.pyi +6 -8
  261. gpu/state/__init__.pyi +2 -2
  262. gpu/types/__init__.pyi +12 -12
  263. gpu_extras/presets/__init__.pyi +2 -5
  264. graphviz_export/__init__.pyi +4 -9
  265. idprop/types/__init__.pyi +8 -35
  266. imbuf/__init__.pyi +4 -4
  267. imbuf/types/__init__.pyi +0 -2
  268. keyingsets_builtins/__init__.pyi +2692 -997
  269. keyingsets_utils/__init__.pyi +14 -69
  270. mathutils/__init__.pyi +194 -238
  271. mathutils/bvhtree/__init__.pyi +4 -6
  272. mathutils/geometry/__init__.pyi +153 -155
  273. mathutils/kdtree/__init__.pyi +8 -12
  274. mathutils/noise/__init__.pyi +26 -26
  275. nodeitems_builtins/__init__.pyi +5 -30
  276. nodeitems_utils/__init__.pyi +8 -45
  277. rna_info/__init__.pyi +39 -215
  278. rna_keymap_ui/__init__.pyi +6 -29
  279. rna_prop_ui/__init__.pyi +24 -62
  280. rna_xml/__init__.pyi +16 -39
  281. sys_info/__init__.pyi +1 -4
  282. _bpy_internal/freedesktop/py.typed +0 -0
  283. bl_app_override/helpers/py.typed +0 -0
  284. bl_console_utils/autocomplete/complete_calltip/py.typed +0 -0
  285. bl_console_utils/autocomplete/complete_import/py.typed +0 -0
  286. bl_console_utils/autocomplete/complete_namespace/py.typed +0 -0
  287. bl_console_utils/autocomplete/intellisense/py.typed +0 -0
  288. bl_console_utils/autocomplete/py.typed +0 -0
  289. bl_i18n_utils/bl_extract_messages/py.typed +0 -0
  290. bl_i18n_utils/merge_po/py.typed +0 -0
  291. bl_i18n_utils/settings/py.typed +0 -0
  292. bl_i18n_utils/utils/py.typed +0 -0
  293. bl_i18n_utils/utils_cli/py.typed +0 -0
  294. bl_i18n_utils/utils_languages_menu/py.typed +0 -0
  295. bl_i18n_utils/utils_rtl/py.typed +0 -0
  296. bl_keymap_utils/io/py.typed +0 -0
  297. bl_keymap_utils/keymap_from_toolbar/py.typed +0 -0
  298. bl_keymap_utils/keymap_hierarchy/py.typed +0 -0
  299. bl_keymap_utils/platform_helpers/py.typed +0 -0
  300. bl_keymap_utils/versioning/py.typed +0 -0
  301. bl_operators/add_mesh_torus/py.typed +0 -0
  302. bl_operators/anim/py.typed +0 -0
  303. bl_operators/assets/py.typed +0 -0
  304. bl_operators/bmesh/find_adjacent/py.typed +0 -0
  305. bl_operators/bmesh/py.typed +0 -0
  306. bl_operators/clip/py.typed +0 -0
  307. bl_operators/console/py.typed +0 -0
  308. bl_operators/constraint/py.typed +0 -0
  309. bl_operators/file/py.typed +0 -0
  310. bl_operators/freestyle/py.typed +0 -0
  311. bl_operators/geometry_nodes/py.typed +0 -0
  312. bl_operators/image/py.typed +0 -0
  313. bl_operators/mesh/py.typed +0 -0
  314. bl_operators/node/py.typed +0 -0
  315. bl_operators/object/py.typed +0 -0
  316. bl_operators/object_align/py.typed +0 -0
  317. bl_operators/object_quick_effects/py.typed +0 -0
  318. bl_operators/object_randomize_transform/py.typed +0 -0
  319. bl_operators/presets/py.typed +0 -0
  320. bl_operators/rigidbody/py.typed +0 -0
  321. bl_operators/screen_play_rendered_anim/py.typed +0 -0
  322. bl_operators/sequencer/py.typed +0 -0
  323. bl_operators/spreadsheet/py.typed +0 -0
  324. bl_operators/userpref/py.typed +0 -0
  325. bl_operators/uvcalc_follow_active/py.typed +0 -0
  326. bl_operators/uvcalc_lightmap/py.typed +0 -0
  327. bl_operators/uvcalc_transform/py.typed +0 -0
  328. bl_operators/vertexpaint_dirt/py.typed +0 -0
  329. bl_operators/view3d/py.typed +0 -0
  330. bl_operators/wm/py.typed +0 -0
  331. bl_operators/world/py.typed +0 -0
  332. bl_previews_utils/bl_previews_render/py.typed +0 -0
  333. bl_rna_utils/data_path/py.typed +0 -0
  334. bl_text_utils/external_editor/py.typed +0 -0
  335. bl_ui/anim/py.typed +0 -0
  336. bl_ui/asset_shelf/py.typed +0 -0
  337. bl_ui/generic_ui_list/py.typed +0 -0
  338. bl_ui/node_add_menu/py.typed +0 -0
  339. bl_ui/node_add_menu_compositor/py.typed +0 -0
  340. bl_ui/node_add_menu_geometry/py.typed +0 -0
  341. bl_ui/node_add_menu_shader/py.typed +0 -0
  342. bl_ui/node_add_menu_texture/py.typed +0 -0
  343. bl_ui/properties_animviz/py.typed +0 -0
  344. bl_ui/properties_collection/py.typed +0 -0
  345. bl_ui/properties_constraint/py.typed +0 -0
  346. bl_ui/properties_data_armature/py.typed +0 -0
  347. bl_ui/properties_data_bone/py.typed +0 -0
  348. bl_ui/properties_data_camera/py.typed +0 -0
  349. bl_ui/properties_data_curve/py.typed +0 -0
  350. bl_ui/properties_data_curves/py.typed +0 -0
  351. bl_ui/properties_data_empty/py.typed +0 -0
  352. bl_ui/properties_data_gpencil/py.typed +0 -0
  353. bl_ui/properties_data_grease_pencil/py.typed +0 -0
  354. bl_ui/properties_data_lattice/py.typed +0 -0
  355. bl_ui/properties_data_light/py.typed +0 -0
  356. bl_ui/properties_data_lightprobe/py.typed +0 -0
  357. bl_ui/properties_data_mesh/py.typed +0 -0
  358. bl_ui/properties_data_metaball/py.typed +0 -0
  359. bl_ui/properties_data_modifier/py.typed +0 -0
  360. bl_ui/properties_data_pointcloud/py.typed +0 -0
  361. bl_ui/properties_data_shaderfx/py.typed +0 -0
  362. bl_ui/properties_data_speaker/py.typed +0 -0
  363. bl_ui/properties_data_volume/py.typed +0 -0
  364. bl_ui/properties_freestyle/py.typed +0 -0
  365. bl_ui/properties_grease_pencil_common/py.typed +0 -0
  366. bl_ui/properties_mask_common/py.typed +0 -0
  367. bl_ui/properties_material/py.typed +0 -0
  368. bl_ui/properties_material_gpencil/py.typed +0 -0
  369. bl_ui/properties_object/py.typed +0 -0
  370. bl_ui/properties_output/py.typed +0 -0
  371. bl_ui/properties_paint_common/py.typed +0 -0
  372. bl_ui/properties_particle/py.typed +0 -0
  373. bl_ui/properties_physics_cloth/py.typed +0 -0
  374. bl_ui/properties_physics_common/py.typed +0 -0
  375. bl_ui/properties_physics_dynamicpaint/py.typed +0 -0
  376. bl_ui/properties_physics_field/py.typed +0 -0
  377. bl_ui/properties_physics_fluid/py.typed +0 -0
  378. bl_ui/properties_physics_geometry_nodes/py.typed +0 -0
  379. bl_ui/properties_physics_rigidbody/py.typed +0 -0
  380. bl_ui/properties_physics_rigidbody_constraint/py.typed +0 -0
  381. bl_ui/properties_physics_softbody/py.typed +0 -0
  382. bl_ui/properties_render/py.typed +0 -0
  383. bl_ui/properties_scene/py.typed +0 -0
  384. bl_ui/properties_texture/py.typed +0 -0
  385. bl_ui/properties_view_layer/py.typed +0 -0
  386. bl_ui/properties_workspace/py.typed +0 -0
  387. bl_ui/properties_world/py.typed +0 -0
  388. bl_ui/space_clip/py.typed +0 -0
  389. bl_ui/space_console/py.typed +0 -0
  390. bl_ui/space_dopesheet/py.typed +0 -0
  391. bl_ui/space_filebrowser/py.typed +0 -0
  392. bl_ui/space_graph/py.typed +0 -0
  393. bl_ui/space_image/py.typed +0 -0
  394. bl_ui/space_info/py.typed +0 -0
  395. bl_ui/space_nla/py.typed +0 -0
  396. bl_ui/space_node/py.typed +0 -0
  397. bl_ui/space_outliner/py.typed +0 -0
  398. bl_ui/space_properties/py.typed +0 -0
  399. bl_ui/space_sequencer/py.typed +0 -0
  400. bl_ui/space_spreadsheet/py.typed +0 -0
  401. bl_ui/space_statusbar/py.typed +0 -0
  402. bl_ui/space_text/py.typed +0 -0
  403. bl_ui/space_time/py.typed +0 -0
  404. bl_ui/space_toolsystem_common/py.typed +0 -0
  405. bl_ui/space_toolsystem_toolbar/py.typed +0 -0
  406. bl_ui/space_topbar/py.typed +0 -0
  407. bl_ui/space_userpref/py.typed +0 -0
  408. bl_ui/space_view3d/py.typed +0 -0
  409. bl_ui/space_view3d_toolbar/py.typed +0 -0
  410. bl_ui/temp_anim_layers/py.typed +0 -0
  411. bl_ui/utils/py.typed +0 -0
  412. bl_ui_utils/bug_report_url/py.typed +0 -0
  413. bl_ui_utils/layout/py.typed +0 -0
  414. bmesh/geometry/py.typed +0 -0
  415. bmesh/ops/py.typed +0 -0
  416. bmesh/types/py.typed +0 -0
  417. bmesh/utils/py.typed +0 -0
  418. bpy/app/handlers/py.typed +0 -0
  419. bpy/app/icons/py.typed +0 -0
  420. bpy/app/py.typed +0 -0
  421. bpy/app/timers/py.typed +0 -0
  422. bpy/app/translations/py.typed +0 -0
  423. bpy/msgbus/py.typed +0 -0
  424. bpy/ops/action/py.typed +0 -0
  425. bpy/ops/anim/py.typed +0 -0
  426. bpy/ops/armature/py.typed +0 -0
  427. bpy/ops/asset/py.typed +0 -0
  428. bpy/ops/bl_pkg/py.typed +0 -0
  429. bpy/ops/boid/py.typed +0 -0
  430. bpy/ops/brush/py.typed +0 -0
  431. bpy/ops/buttons/py.typed +0 -0
  432. bpy/ops/cachefile/py.typed +0 -0
  433. bpy/ops/camera/py.typed +0 -0
  434. bpy/ops/clip/py.typed +0 -0
  435. bpy/ops/cloth/py.typed +0 -0
  436. bpy/ops/collection/py.typed +0 -0
  437. bpy/ops/console/py.typed +0 -0
  438. bpy/ops/constraint/py.typed +0 -0
  439. bpy/ops/curve/py.typed +0 -0
  440. bpy/ops/curves/py.typed +0 -0
  441. bpy/ops/cycles/py.typed +0 -0
  442. bpy/ops/dpaint/py.typed +0 -0
  443. bpy/ops/ed/py.typed +0 -0
  444. bpy/ops/export_anim/py.typed +0 -0
  445. bpy/ops/export_scene/py.typed +0 -0
  446. bpy/ops/file/py.typed +0 -0
  447. bpy/ops/fluid/py.typed +0 -0
  448. bpy/ops/font/py.typed +0 -0
  449. bpy/ops/geometry/py.typed +0 -0
  450. bpy/ops/gizmogroup/py.typed +0 -0
  451. bpy/ops/gpencil/py.typed +0 -0
  452. bpy/ops/graph/py.typed +0 -0
  453. bpy/ops/grease_pencil/py.typed +0 -0
  454. bpy/ops/image/py.typed +0 -0
  455. bpy/ops/import_anim/py.typed +0 -0
  456. bpy/ops/import_curve/py.typed +0 -0
  457. bpy/ops/import_scene/py.typed +0 -0
  458. bpy/ops/info/py.typed +0 -0
  459. bpy/ops/lattice/py.typed +0 -0
  460. bpy/ops/marker/py.typed +0 -0
  461. bpy/ops/mask/py.typed +0 -0
  462. bpy/ops/material/py.typed +0 -0
  463. bpy/ops/mball/py.typed +0 -0
  464. bpy/ops/mesh/py.typed +0 -0
  465. bpy/ops/nla/py.typed +0 -0
  466. bpy/ops/node/py.typed +0 -0
  467. bpy/ops/object/py.typed +0 -0
  468. bpy/ops/outliner/py.typed +0 -0
  469. bpy/ops/paint/py.typed +0 -0
  470. bpy/ops/paintcurve/py.typed +0 -0
  471. bpy/ops/palette/py.typed +0 -0
  472. bpy/ops/particle/py.typed +0 -0
  473. bpy/ops/pose/py.typed +0 -0
  474. bpy/ops/poselib/py.typed +0 -0
  475. bpy/ops/preferences/py.typed +0 -0
  476. bpy/ops/ptcache/py.typed +0 -0
  477. bpy/ops/py.typed +0 -0
  478. bpy/ops/render/py.typed +0 -0
  479. bpy/ops/rigidbody/py.typed +0 -0
  480. bpy/ops/scene/py.typed +0 -0
  481. bpy/ops/screen/py.typed +0 -0
  482. bpy/ops/script/py.typed +0 -0
  483. bpy/ops/sculpt/py.typed +0 -0
  484. bpy/ops/sculpt_curves/py.typed +0 -0
  485. bpy/ops/sequencer/py.typed +0 -0
  486. bpy/ops/sound/py.typed +0 -0
  487. bpy/ops/spreadsheet/py.typed +0 -0
  488. bpy/ops/surface/py.typed +0 -0
  489. bpy/ops/text/py.typed +0 -0
  490. bpy/ops/text_editor/py.typed +0 -0
  491. bpy/ops/texture/py.typed +0 -0
  492. bpy/ops/transform/py.typed +0 -0
  493. bpy/ops/ui/py.typed +0 -0
  494. bpy/ops/uilist/py.typed +0 -0
  495. bpy/ops/uv/py.typed +0 -0
  496. bpy/ops/view2d/py.typed +0 -0
  497. bpy/ops/view3d/py.typed +0 -0
  498. bpy/ops/wm/py.typed +0 -0
  499. bpy/ops/workspace/py.typed +0 -0
  500. bpy/ops/world/py.typed +0 -0
  501. bpy/path/py.typed +0 -0
  502. bpy/props/py.typed +0 -0
  503. bpy/types/py.typed +0 -0
  504. bpy/utils/previews/py.typed +0 -0
  505. bpy/utils/py.typed +0 -0
  506. bpy/utils/units/py.typed +0 -0
  507. bpy_extras/anim_utils/py.typed +0 -0
  508. bpy_extras/asset_utils/py.typed +0 -0
  509. bpy_extras/bmesh_utils/py.typed +0 -0
  510. bpy_extras/extensions/junction_module/py.typed +0 -0
  511. bpy_extras/extensions/py.typed +0 -0
  512. bpy_extras/id_map_utils/py.typed +0 -0
  513. bpy_extras/image_utils/py.typed +0 -0
  514. bpy_extras/io_utils/py.typed +0 -0
  515. bpy_extras/keyconfig_utils/py.typed +0 -0
  516. bpy_extras/mesh_utils/py.typed +0 -0
  517. bpy_extras/node_shader_utils/py.typed +0 -0
  518. bpy_extras/node_utils/py.typed +0 -0
  519. bpy_extras/object_utils/py.typed +0 -0
  520. bpy_extras/view3d_utils/py.typed +0 -0
  521. bpy_extras/wm_utils/progress_report/py.typed +0 -0
  522. bpy_extras/wm_utils/py.typed +0 -0
  523. fake_bpy_module-20240516.dist-info/RECORD +0 -618
  524. freestyle/chainingiterators/py.typed +0 -0
  525. freestyle/functions/py.typed +0 -0
  526. freestyle/predicates/py.typed +0 -0
  527. freestyle/shaders/py.typed +0 -0
  528. freestyle/types/py.typed +0 -0
  529. freestyle/utils/ContextFunctions/py.typed +0 -0
  530. freestyle/utils/py.typed +0 -0
  531. gpu/capabilities/py.typed +0 -0
  532. gpu/matrix/py.typed +0 -0
  533. gpu/platform/py.typed +0 -0
  534. gpu/select/py.typed +0 -0
  535. gpu/shader/py.typed +0 -0
  536. gpu/state/py.typed +0 -0
  537. gpu/texture/py.typed +0 -0
  538. gpu/types/py.typed +0 -0
  539. gpu_extras/batch/py.typed +0 -0
  540. gpu_extras/presets/py.typed +0 -0
  541. idprop/types/py.typed +0 -0
  542. imbuf/types/py.typed +0 -0
  543. mathutils/bvhtree/py.typed +0 -0
  544. mathutils/geometry/py.typed +0 -0
  545. mathutils/interpolate/py.typed +0 -0
  546. mathutils/kdtree/py.typed +0 -0
  547. mathutils/noise/py.typed +0 -0
  548. {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240518.dist-info}/WHEEL +0 -0
  549. {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240518.dist-info}/top_level.txt +0 -0
mathutils/__init__.pyi CHANGED
@@ -56,10 +56,10 @@ class Color:
56
56
  :type: float
57
57
  """
58
58
 
59
- hsv: typing.Union[typing.Sequence[float], Vector]
59
+ hsv: typing.Sequence[float] | Vector
60
60
  """ HSV Values in [0, 1].
61
61
 
62
- :type: typing.Union[typing.Sequence[float], Vector]
62
+ :type: typing.Sequence[float] | Vector
63
63
  """
64
64
 
65
65
  is_frozen: bool
@@ -188,121 +188,121 @@ class Color:
188
188
  """
189
189
  ...
190
190
 
191
- def __add__(self, other: typing.Union[typing.Sequence[float], Color]) -> Color:
191
+ def __add__(self, other: typing.Sequence[float] | Color) -> Color:
192
192
  """
193
193
 
194
194
  :param other:
195
- :type other: typing.Union[typing.Sequence[float], Color]
195
+ :type other: typing.Sequence[float] | Color
196
196
  :return:
197
197
  :rtype: Color
198
198
  """
199
199
  ...
200
200
 
201
- def __sub__(self, other: typing.Union[typing.Sequence[float], Color]) -> Color:
201
+ def __sub__(self, other: typing.Sequence[float] | Color) -> Color:
202
202
  """
203
203
 
204
204
  :param other:
205
- :type other: typing.Union[typing.Sequence[float], Color]
205
+ :type other: typing.Sequence[float] | Color
206
206
  :return:
207
207
  :rtype: Color
208
208
  """
209
209
  ...
210
210
 
211
- def __mul__(self, other: typing.Union[int, float]) -> Color:
211
+ def __mul__(self, other: int | float) -> Color:
212
212
  """
213
213
 
214
214
  :param other:
215
- :type other: typing.Union[int, float]
215
+ :type other: int | float
216
216
  :return:
217
217
  :rtype: Color
218
218
  """
219
219
  ...
220
220
 
221
- def __truediv__(self, other: typing.Union[int, float]) -> Color:
221
+ def __truediv__(self, other: int | float) -> Color:
222
222
  """
223
223
 
224
224
  :param other:
225
- :type other: typing.Union[int, float]
225
+ :type other: int | float
226
226
  :return:
227
227
  :rtype: Color
228
228
  """
229
229
  ...
230
230
 
231
- def __radd__(self, other: typing.Union[typing.Sequence[float], Color]) -> Color:
231
+ def __radd__(self, other: typing.Sequence[float] | Color) -> Color:
232
232
  """
233
233
 
234
234
  :param other:
235
- :type other: typing.Union[typing.Sequence[float], Color]
235
+ :type other: typing.Sequence[float] | Color
236
236
  :return:
237
237
  :rtype: Color
238
238
  """
239
239
  ...
240
240
 
241
- def __rsub__(self, other: typing.Union[typing.Sequence[float], Color]) -> Color:
241
+ def __rsub__(self, other: typing.Sequence[float] | Color) -> Color:
242
242
  """
243
243
 
244
244
  :param other:
245
- :type other: typing.Union[typing.Sequence[float], Color]
245
+ :type other: typing.Sequence[float] | Color
246
246
  :return:
247
247
  :rtype: Color
248
248
  """
249
249
  ...
250
250
 
251
- def __rmul__(self, other: typing.Union[int, float]) -> Color:
251
+ def __rmul__(self, other: int | float) -> Color:
252
252
  """
253
253
 
254
254
  :param other:
255
- :type other: typing.Union[int, float]
255
+ :type other: int | float
256
256
  :return:
257
257
  :rtype: Color
258
258
  """
259
259
  ...
260
260
 
261
- def __rtruediv__(self, other: typing.Union[int, float]) -> Color:
261
+ def __rtruediv__(self, other: int | float) -> Color:
262
262
  """
263
263
 
264
264
  :param other:
265
- :type other: typing.Union[int, float]
265
+ :type other: int | float
266
266
  :return:
267
267
  :rtype: Color
268
268
  """
269
269
  ...
270
270
 
271
- def __iadd__(self, other: typing.Union[typing.Sequence[float], Color]) -> Color:
271
+ def __iadd__(self, other: typing.Sequence[float] | Color) -> Color:
272
272
  """
273
273
 
274
274
  :param other:
275
- :type other: typing.Union[typing.Sequence[float], Color]
275
+ :type other: typing.Sequence[float] | Color
276
276
  :return:
277
277
  :rtype: Color
278
278
  """
279
279
  ...
280
280
 
281
- def __isub__(self, other: typing.Union[typing.Sequence[float], Color]) -> Color:
281
+ def __isub__(self, other: typing.Sequence[float] | Color) -> Color:
282
282
  """
283
283
 
284
284
  :param other:
285
- :type other: typing.Union[typing.Sequence[float], Color]
285
+ :type other: typing.Sequence[float] | Color
286
286
  :return:
287
287
  :rtype: Color
288
288
  """
289
289
  ...
290
290
 
291
- def __imul__(self, other: typing.Union[int, float]) -> Color:
291
+ def __imul__(self, other: int | float) -> Color:
292
292
  """
293
293
 
294
294
  :param other:
295
- :type other: typing.Union[int, float]
295
+ :type other: int | float
296
296
  :return:
297
297
  :rtype: Color
298
298
  """
299
299
  ...
300
300
 
301
- def __itruediv__(self, other: typing.Union[int, float]) -> Color:
301
+ def __itruediv__(self, other: int | float) -> Color:
302
302
  """
303
303
 
304
304
  :param other:
305
- :type other: typing.Union[int, float]
305
+ :type other: int | float
306
306
  :return:
307
307
  :rtype: Color
308
308
  """
@@ -389,19 +389,17 @@ class Euler:
389
389
 
390
390
  def rotate(
391
391
  self,
392
- other: typing.Union[
393
- typing.Sequence[float],
394
- Euler,
395
- typing.Sequence[float],
396
- Quaternion,
397
- typing.Sequence[float],
398
- Matrix,
399
- ],
392
+ other: typing.Sequence[float]
393
+ | Euler
394
+ | typing.Sequence[float]
395
+ | Quaternion
396
+ | typing.Sequence[float]
397
+ | Matrix,
400
398
  ):
401
399
  """Rotates the euler by another mathutils value.
402
400
 
403
401
  :param other: rotation component of mathutils value
404
- :type other: typing.Union[typing.Sequence[float], Euler, typing.Sequence[float], Quaternion, typing.Sequence[float], Matrix]
402
+ :type other: typing.Sequence[float] | Euler | typing.Sequence[float] | Quaternion | typing.Sequence[float] | Matrix
405
403
  """
406
404
  ...
407
405
 
@@ -523,11 +521,11 @@ class Matrix:
523
521
  """
524
522
 
525
523
  @classmethod
526
- def Diagonal(cls, vector: typing.Union[typing.Sequence[float], Vector]) -> Matrix:
524
+ def Diagonal(cls, vector: typing.Sequence[float] | Vector) -> Matrix:
527
525
  """Create a diagonal (scaling) matrix using the values from the vector.
528
526
 
529
527
  :param vector: The vector of values for the diagonal.
530
- :type vector: typing.Union[typing.Sequence[float], Vector]
528
+ :type vector: typing.Sequence[float] | Vector
531
529
  :return: A diagonal matrix.
532
530
  :rtype: Matrix
533
531
  """
@@ -547,37 +545,37 @@ class Matrix:
547
545
  @classmethod
548
546
  def LocRotScale(
549
547
  cls,
550
- location: typing.Optional[typing.Union[typing.Sequence[float], Vector]],
551
- rotation: typing.Optional[
552
- typing.Union[
553
- typing.Sequence[float], Quaternion, typing.Sequence[float], Euler
554
- ]
555
- ],
556
- scale: typing.Optional[typing.Union[typing.Sequence[float], Vector]],
548
+ location: typing.Sequence[float] | Vector | None,
549
+ rotation: typing.Sequence[float]
550
+ | Quaternion
551
+ | typing.Sequence[float]
552
+ | Euler
553
+ | None,
554
+ scale: typing.Sequence[float] | Vector | None,
557
555
  ):
558
556
  """Create a matrix combining translation, rotation and scale,
559
557
  acting as the inverse of the decompose() method.Any of the inputs may be replaced with None if not needed.
560
558
 
561
559
  :param location: The translation component.
562
- :type location: typing.Optional[typing.Union[typing.Sequence[float], Vector]]
560
+ :type location: typing.Sequence[float] | Vector | None
563
561
  :param rotation: The rotation component.
564
- :type rotation: typing.Optional[typing.Union[typing.Sequence[float], Quaternion, typing.Sequence[float], Euler]]
562
+ :type rotation: typing.Sequence[float] | Quaternion | typing.Sequence[float] | Euler | None
565
563
  :param scale: The scale component.
566
- :type scale: typing.Optional[typing.Union[typing.Sequence[float], Vector]]
564
+ :type scale: typing.Sequence[float] | Vector | None
567
565
  :return: Combined transformation matrix.
568
566
  """
569
567
  ...
570
568
 
571
569
  @classmethod
572
570
  def OrthoProjection(
573
- cls, axis: typing.Union[str, typing.Sequence[float], Vector], size: int
571
+ cls, axis: str | typing.Sequence[float] | Vector, size: int
574
572
  ) -> Matrix:
575
573
  """Create a matrix to represent an orthographic projection.
576
574
 
577
575
  :param axis: Can be any of the following: ['X', 'Y', 'XY', 'XZ', 'YZ'],
578
576
  where a single axis is for a 2D matrix.
579
577
  Or a vector for an arbitrary axis
580
- :type axis: typing.Union[str, typing.Sequence[float], Vector]
578
+ :type axis: str | typing.Sequence[float] | Vector
581
579
  :param size: The size of the projection matrix to construct [2, 4].
582
580
  :type size: int
583
581
  :return: A new projection matrix.
@@ -587,10 +585,7 @@ class Matrix:
587
585
 
588
586
  @classmethod
589
587
  def Rotation(
590
- cls,
591
- angle: float,
592
- size: int,
593
- axis: typing.Union[str, typing.Sequence[float], Vector],
588
+ cls, angle: float, size: int, axis: str | typing.Sequence[float] | Vector
594
589
  ) -> Matrix:
595
590
  """Create a matrix representing a rotation.
596
591
 
@@ -600,7 +595,7 @@ class Matrix:
600
595
  :type size: int
601
596
  :param axis: a string in ['X', 'Y', 'Z'] or a 3D Vector Object
602
597
  (optional when size is 2).
603
- :type axis: typing.Union[str, typing.Sequence[float], Vector]
598
+ :type axis: str | typing.Sequence[float] | Vector
604
599
  :return: A new rotation matrix.
605
600
  :rtype: Matrix
606
601
  """
@@ -608,10 +603,7 @@ class Matrix:
608
603
 
609
604
  @classmethod
610
605
  def Scale(
611
- cls,
612
- factor: float,
613
- size: int,
614
- axis: typing.Union[typing.Sequence[float], Vector],
606
+ cls, factor: float, size: int, axis: typing.Sequence[float] | Vector
615
607
  ) -> Matrix:
616
608
  """Create a matrix representing a scaling.
617
609
 
@@ -620,7 +612,7 @@ class Matrix:
620
612
  :param size: The size of the scale matrix to construct [2, 4].
621
613
  :type size: int
622
614
  :param axis: Direction to influence scale. (optional).
623
- :type axis: typing.Union[typing.Sequence[float], Vector]
615
+ :type axis: typing.Sequence[float] | Vector
624
616
  :return: A new scale matrix.
625
617
  :rtype: Matrix
626
618
  """
@@ -644,13 +636,11 @@ class Matrix:
644
636
  ...
645
637
 
646
638
  @classmethod
647
- def Translation(
648
- cls, vector: typing.Union[typing.Sequence[float], Vector]
649
- ) -> Matrix:
639
+ def Translation(cls, vector: typing.Sequence[float] | Vector) -> Matrix:
650
640
  """Create a matrix representing a translation.
651
641
 
652
642
  :param vector: The translation vector.
653
- :type vector: typing.Union[typing.Sequence[float], Vector]
643
+ :type vector: typing.Sequence[float] | Vector
654
644
  :return: An identity matrix with a translation.
655
645
  :rtype: Matrix
656
646
  """
@@ -676,11 +666,11 @@ class Matrix:
676
666
  """
677
667
  ...
678
668
 
679
- def decompose(self) -> typing.Tuple[Vector, Quaternion, Vector]:
669
+ def decompose(self) -> tuple[Vector, Quaternion, Vector]:
680
670
  """Return the translation, rotation, and scale components of this matrix.
681
671
 
682
672
  :return: tuple of translation, rotation, and scale
683
- :rtype: typing.Tuple[Vector, Quaternion, Vector]
673
+ :rtype: tuple[Vector, Quaternion, Vector]
684
674
  """
685
675
  ...
686
676
 
@@ -704,12 +694,12 @@ class Matrix:
704
694
  """Set the matrix to the identity matrix.`Identity matrix <https://en.wikipedia.org/wiki/Identity_matrix>`__ on Wikipedia."""
705
695
  ...
706
696
 
707
- def invert(self, fallback: typing.Union[typing.Sequence[float], Matrix] = None):
697
+ def invert(self, fallback: typing.Sequence[float] | Matrix = None):
708
698
  """Set the matrix to its inverse.`Inverse matrix <https://en.wikipedia.org/wiki/Inverse_matrix>`__ on Wikipedia.
709
699
 
710
700
  :param fallback: Set the matrix to this value when the inverse cannot be calculated
711
701
  (instead of raising a `ValueError` exception).
712
- :type fallback: typing.Union[typing.Sequence[float], Matrix]
702
+ :type fallback: typing.Sequence[float] | Matrix
713
703
  """
714
704
  ...
715
705
 
@@ -742,13 +732,11 @@ class Matrix:
742
732
  """
743
733
  ...
744
734
 
745
- def lerp(
746
- self, other: typing.Union[typing.Sequence[float], Matrix], factor: float
747
- ) -> Matrix:
735
+ def lerp(self, other: typing.Sequence[float] | Matrix, factor: float) -> Matrix:
748
736
  """Returns the interpolation of two matrices. Uses polar decomposition, see "Matrix Animation and Polar Decomposition", Shoemake and Duff, 1992.
749
737
 
750
738
  :param other: value to interpolate with.
751
- :type other: typing.Union[typing.Sequence[float], Matrix]
739
+ :type other: typing.Sequence[float] | Matrix
752
740
  :param factor: The interpolation value in [0.0, 1.0].
753
741
  :type factor: float
754
742
  :return: The interpolated matrix.
@@ -774,19 +762,17 @@ class Matrix:
774
762
 
775
763
  def rotate(
776
764
  self,
777
- other: typing.Union[
778
- typing.Sequence[float],
779
- Euler,
780
- typing.Sequence[float],
781
- Quaternion,
782
- typing.Sequence[float],
783
- Matrix,
784
- ],
765
+ other: typing.Sequence[float]
766
+ | Euler
767
+ | typing.Sequence[float]
768
+ | Quaternion
769
+ | typing.Sequence[float]
770
+ | Matrix,
785
771
  ):
786
772
  """Rotates the matrix by another mathutils value.
787
773
 
788
774
  :param other: rotation component of mathutils value
789
- :type other: typing.Union[typing.Sequence[float], Euler, typing.Sequence[float], Quaternion, typing.Sequence[float], Matrix]
775
+ :type other: typing.Sequence[float] | Euler | typing.Sequence[float] | Quaternion | typing.Sequence[float] | Matrix
790
776
  """
791
777
  ...
792
778
 
@@ -815,7 +801,7 @@ class Matrix:
815
801
  ...
816
802
 
817
803
  def to_euler(
818
- self, order: str, euler_compat: typing.Union[typing.Sequence[float], Euler]
804
+ self, order: str, euler_compat: typing.Sequence[float] | Euler
819
805
  ) -> Euler:
820
806
  """Return an Euler representation of the rotation matrix
821
807
  (3x3 or 4x4 matrix only).
@@ -826,7 +812,7 @@ class Matrix:
826
812
  :param euler_compat: Optional euler argument the new euler will be made
827
813
  compatible with (no axis flipping between them).
828
814
  Useful for converting a series of matrices to animation curves.
829
- :type euler_compat: typing.Union[typing.Sequence[float], Euler]
815
+ :type euler_compat: typing.Sequence[float] | Euler
830
816
  :return: Euler representation of the matrix.
831
817
  :rtype: Euler
832
818
  """
@@ -905,108 +891,105 @@ class Matrix:
905
891
  """
906
892
  ...
907
893
 
908
- def __add__(self, other: typing.Union[typing.Sequence[float], Matrix]) -> Matrix:
894
+ def __add__(self, other: typing.Sequence[float] | Matrix) -> Matrix:
909
895
  """
910
896
 
911
897
  :param other:
912
- :type other: typing.Union[typing.Sequence[float], Matrix]
898
+ :type other: typing.Sequence[float] | Matrix
913
899
  :return:
914
900
  :rtype: Matrix
915
901
  """
916
902
  ...
917
903
 
918
- def __sub__(self, other: typing.Union[typing.Sequence[float], Matrix]) -> Matrix:
904
+ def __sub__(self, other: typing.Sequence[float] | Matrix) -> Matrix:
919
905
  """
920
906
 
921
907
  :param other:
922
- :type other: typing.Union[typing.Sequence[float], Matrix]
908
+ :type other: typing.Sequence[float] | Matrix
923
909
  :return:
924
910
  :rtype: Matrix
925
911
  """
926
912
  ...
927
913
 
928
- def __mul__(self, other: typing.Union[int, float]) -> Matrix:
914
+ def __mul__(self, other: int | float) -> Matrix:
929
915
  """
930
916
 
931
917
  :param other:
932
- :type other: typing.Union[int, float]
918
+ :type other: int | float
933
919
  :return:
934
920
  :rtype: Matrix
935
921
  """
936
922
  ...
937
923
 
938
924
  @typing.overload
939
- def __matmul__(self, other: typing.Union[typing.Sequence[float], Matrix]) -> Matrix:
925
+ def __matmul__(self, other: typing.Sequence[float] | Matrix) -> Matrix:
940
926
  """
941
927
 
942
928
  :param other:
943
- :type other: typing.Union[typing.Sequence[float], Matrix]
929
+ :type other: typing.Sequence[float] | Matrix
944
930
  :return:
945
931
  :rtype: Matrix
946
932
  """
947
933
  ...
948
934
 
949
935
  @typing.overload
950
- def __matmul__(self, other: typing.Union[typing.Sequence[float], Vector]) -> Vector:
936
+ def __matmul__(self, other: typing.Sequence[float] | Vector) -> Vector:
951
937
  """
952
938
 
953
939
  :param other:
954
- :type other: typing.Union[typing.Sequence[float], Vector]
940
+ :type other: typing.Sequence[float] | Vector
955
941
  :return:
956
942
  :rtype: Vector
957
943
  """
958
944
  ...
959
945
 
960
946
  def __matmul__(
961
- self,
962
- other: typing.Union[
963
- typing.Sequence[float], Matrix, typing.Sequence[float], Vector
964
- ],
965
- ) -> typing.Union[Matrix, Vector]:
947
+ self, other: typing.Sequence[float] | Matrix | typing.Sequence[float] | Vector
948
+ ) -> Matrix | Vector:
966
949
  """
967
950
 
968
951
  :param other:
969
- :type other: typing.Union[typing.Sequence[float], Matrix, typing.Sequence[float], Vector]
952
+ :type other: typing.Sequence[float] | Matrix | typing.Sequence[float] | Vector
970
953
  :return:
971
- :rtype: typing.Union[Matrix, Vector]
954
+ :rtype: Matrix | Vector
972
955
  """
973
956
  ...
974
957
 
975
- def __radd__(self, other: typing.Union[typing.Sequence[float], Matrix]) -> Matrix:
958
+ def __radd__(self, other: typing.Sequence[float] | Matrix) -> Matrix:
976
959
  """
977
960
 
978
961
  :param other:
979
- :type other: typing.Union[typing.Sequence[float], Matrix]
962
+ :type other: typing.Sequence[float] | Matrix
980
963
  :return:
981
964
  :rtype: Matrix
982
965
  """
983
966
  ...
984
967
 
985
- def __rsub__(self, other: typing.Union[typing.Sequence[float], Matrix]) -> Matrix:
968
+ def __rsub__(self, other: typing.Sequence[float] | Matrix) -> Matrix:
986
969
  """
987
970
 
988
971
  :param other:
989
- :type other: typing.Union[typing.Sequence[float], Matrix]
972
+ :type other: typing.Sequence[float] | Matrix
990
973
  :return:
991
974
  :rtype: Matrix
992
975
  """
993
976
  ...
994
977
 
995
- def __rmul__(self, other: typing.Union[int, float]) -> Matrix:
978
+ def __rmul__(self, other: int | float) -> Matrix:
996
979
  """
997
980
 
998
981
  :param other:
999
- :type other: typing.Union[int, float]
982
+ :type other: int | float
1000
983
  :return:
1001
984
  :rtype: Matrix
1002
985
  """
1003
986
  ...
1004
987
 
1005
- def __imul__(self, other: typing.Union[int, float]) -> Matrix:
988
+ def __imul__(self, other: int | float) -> Matrix:
1006
989
  """
1007
990
 
1008
991
  :param other:
1009
- :type other: typing.Union[int, float]
992
+ :type other: int | float
1010
993
  :return:
1011
994
  :rtype: Matrix
1012
995
  """
@@ -1021,10 +1004,10 @@ class Quaternion:
1021
1004
  :type: float
1022
1005
  """
1023
1006
 
1024
- axis: typing.Union[typing.Sequence[float], Vector]
1007
+ axis: typing.Sequence[float] | Vector
1025
1008
  """ Quaternion axis as a vector.
1026
1009
 
1027
- :type: typing.Union[typing.Sequence[float], Vector]
1010
+ :type: typing.Sequence[float] | Vector
1028
1011
  """
1029
1012
 
1030
1013
  is_frozen: bool
@@ -1098,23 +1081,21 @@ class Quaternion:
1098
1081
  """
1099
1082
  ...
1100
1083
 
1101
- def cross(
1102
- self, other: typing.Union[typing.Sequence[float], Quaternion]
1103
- ) -> Quaternion:
1084
+ def cross(self, other: typing.Sequence[float] | Quaternion) -> Quaternion:
1104
1085
  """Return the cross product of this quaternion and another.
1105
1086
 
1106
1087
  :param other: The other quaternion to perform the cross product with.
1107
- :type other: typing.Union[typing.Sequence[float], Quaternion]
1088
+ :type other: typing.Sequence[float] | Quaternion
1108
1089
  :return: The cross product.
1109
1090
  :rtype: Quaternion
1110
1091
  """
1111
1092
  ...
1112
1093
 
1113
- def dot(self, other: typing.Union[typing.Sequence[float], Quaternion]) -> float:
1094
+ def dot(self, other: typing.Sequence[float] | Quaternion) -> float:
1114
1095
  """Return the dot product of this quaternion and another.
1115
1096
 
1116
1097
  :param other: The other quaternion to perform the dot product with.
1117
- :type other: typing.Union[typing.Sequence[float], Quaternion]
1098
+ :type other: typing.Sequence[float] | Quaternion
1118
1099
  :return: The dot product.
1119
1100
  :rtype: float
1120
1101
  """
@@ -1170,41 +1151,39 @@ class Quaternion:
1170
1151
 
1171
1152
  def rotate(
1172
1153
  self,
1173
- other: typing.Union[
1174
- typing.Sequence[float],
1175
- Euler,
1176
- typing.Sequence[float],
1177
- Quaternion,
1178
- typing.Sequence[float],
1179
- Matrix,
1180
- ],
1154
+ other: typing.Sequence[float]
1155
+ | Euler
1156
+ | typing.Sequence[float]
1157
+ | Quaternion
1158
+ | typing.Sequence[float]
1159
+ | Matrix,
1181
1160
  ):
1182
1161
  """Rotates the quaternion by another mathutils value.
1183
1162
 
1184
1163
  :param other: rotation component of mathutils value
1185
- :type other: typing.Union[typing.Sequence[float], Euler, typing.Sequence[float], Quaternion, typing.Sequence[float], Matrix]
1164
+ :type other: typing.Sequence[float] | Euler | typing.Sequence[float] | Quaternion | typing.Sequence[float] | Matrix
1186
1165
  """
1187
1166
  ...
1188
1167
 
1189
1168
  def rotation_difference(
1190
- self, other: typing.Union[typing.Sequence[float], Quaternion]
1169
+ self, other: typing.Sequence[float] | Quaternion
1191
1170
  ) -> Quaternion:
1192
1171
  """Returns a quaternion representing the rotational difference.
1193
1172
 
1194
1173
  :param other: second quaternion.
1195
- :type other: typing.Union[typing.Sequence[float], Quaternion]
1174
+ :type other: typing.Sequence[float] | Quaternion
1196
1175
  :return: the rotational difference between the two quat rotations.
1197
1176
  :rtype: Quaternion
1198
1177
  """
1199
1178
  ...
1200
1179
 
1201
1180
  def slerp(
1202
- self, other: typing.Union[typing.Sequence[float], Quaternion], factor: float
1181
+ self, other: typing.Sequence[float] | Quaternion, factor: float
1203
1182
  ) -> Quaternion:
1204
1183
  """Returns the interpolation of two quaternions.
1205
1184
 
1206
1185
  :param other: value to interpolate with.
1207
- :type other: typing.Union[typing.Sequence[float], Quaternion]
1186
+ :type other: typing.Sequence[float] | Quaternion
1208
1187
  :param factor: The interpolation value in [0.0, 1.0].
1209
1188
  :type factor: float
1210
1189
  :return: The interpolated rotation.
@@ -1212,16 +1191,16 @@ class Quaternion:
1212
1191
  """
1213
1192
  ...
1214
1193
 
1215
- def to_axis_angle(self) -> typing.Tuple[Vector, float]:
1194
+ def to_axis_angle(self) -> tuple[Vector, float]:
1216
1195
  """Return the axis, angle representation of the quaternion.
1217
1196
 
1218
1197
  :return: axis, angle.
1219
- :rtype: typing.Tuple[Vector, float]
1198
+ :rtype: tuple[Vector, float]
1220
1199
  """
1221
1200
  ...
1222
1201
 
1223
1202
  def to_euler(
1224
- self, order: str, euler_compat: typing.Union[typing.Sequence[float], Euler]
1203
+ self, order: str, euler_compat: typing.Sequence[float] | Euler
1225
1204
  ) -> Euler:
1226
1205
  """Return Euler representation of the quaternion.
1227
1206
 
@@ -1231,7 +1210,7 @@ class Quaternion:
1231
1210
  :param euler_compat: Optional euler argument the new euler will be made
1232
1211
  compatible with (no axis flipping between them).
1233
1212
  Useful for converting a series of matrices to animation curves.
1234
- :type euler_compat: typing.Union[typing.Sequence[float], Euler]
1213
+ :type euler_compat: typing.Sequence[float] | Euler
1235
1214
  :return: Euler representation of the quaternion.
1236
1215
  :rtype: Euler
1237
1216
  """
@@ -1253,13 +1232,13 @@ class Quaternion:
1253
1232
  """
1254
1233
  ...
1255
1234
 
1256
- def to_swing_twist(self, axis) -> typing.Tuple[Quaternion, float]:
1235
+ def to_swing_twist(self, axis) -> tuple[Quaternion, float]:
1257
1236
  """Split the rotation into a swing quaternion with the specified
1258
1237
  axis fixed at zero, and the remaining twist rotation angle.
1259
1238
 
1260
1239
  :param axis: twist axis as a string in ['X', 'Y', 'Z']
1261
1240
  :return: swing, twist angle.
1262
- :rtype: typing.Tuple[Quaternion, float]
1241
+ :rtype: tuple[Quaternion, float]
1263
1242
  """
1264
1243
  ...
1265
1244
 
@@ -1300,61 +1279,55 @@ class Quaternion:
1300
1279
  """
1301
1280
  ...
1302
1281
 
1303
- def __add__(
1304
- self, other: typing.Union[typing.Sequence[float], Quaternion]
1305
- ) -> Quaternion:
1282
+ def __add__(self, other: typing.Sequence[float] | Quaternion) -> Quaternion:
1306
1283
  """
1307
1284
 
1308
1285
  :param other:
1309
- :type other: typing.Union[typing.Sequence[float], Quaternion]
1286
+ :type other: typing.Sequence[float] | Quaternion
1310
1287
  :return:
1311
1288
  :rtype: Quaternion
1312
1289
  """
1313
1290
  ...
1314
1291
 
1315
- def __sub__(
1316
- self, other: typing.Union[typing.Sequence[float], Quaternion]
1317
- ) -> Quaternion:
1292
+ def __sub__(self, other: typing.Sequence[float] | Quaternion) -> Quaternion:
1318
1293
  """
1319
1294
 
1320
1295
  :param other:
1321
- :type other: typing.Union[typing.Sequence[float], Quaternion]
1296
+ :type other: typing.Sequence[float] | Quaternion
1322
1297
  :return:
1323
1298
  :rtype: Quaternion
1324
1299
  """
1325
1300
  ...
1326
1301
 
1327
1302
  def __mul__(
1328
- self, other: typing.Union[int, float, typing.Sequence[float], Quaternion]
1303
+ self, other: int | float | typing.Sequence[float] | Quaternion
1329
1304
  ) -> Quaternion:
1330
1305
  """
1331
1306
 
1332
1307
  :param other:
1333
- :type other: typing.Union[int, float, typing.Sequence[float], Quaternion]
1308
+ :type other: int | float | typing.Sequence[float] | Quaternion
1334
1309
  :return:
1335
1310
  :rtype: Quaternion
1336
1311
  """
1337
1312
  ...
1338
1313
 
1339
1314
  @typing.overload
1340
- def __matmul__(
1341
- self, other: typing.Union[typing.Sequence[float], Quaternion]
1342
- ) -> Quaternion:
1315
+ def __matmul__(self, other: typing.Sequence[float] | Quaternion) -> Quaternion:
1343
1316
  """
1344
1317
 
1345
1318
  :param other:
1346
- :type other: typing.Union[typing.Sequence[float], Quaternion]
1319
+ :type other: typing.Sequence[float] | Quaternion
1347
1320
  :return:
1348
1321
  :rtype: Quaternion
1349
1322
  """
1350
1323
  ...
1351
1324
 
1352
1325
  @typing.overload
1353
- def __matmul__(self, other: typing.Union[typing.Sequence[float], Vector]) -> Vector:
1326
+ def __matmul__(self, other: typing.Sequence[float] | Vector) -> Vector:
1354
1327
  """
1355
1328
 
1356
1329
  :param other:
1357
- :type other: typing.Union[typing.Sequence[float], Vector]
1330
+ :type other: typing.Sequence[float] | Vector
1358
1331
  :return:
1359
1332
  :rtype: Vector
1360
1333
  """
@@ -1362,62 +1335,56 @@ class Quaternion:
1362
1335
 
1363
1336
  def __matmul__(
1364
1337
  self,
1365
- other: typing.Union[
1366
- typing.Sequence[float], Vector, typing.Sequence[float], Quaternion
1367
- ],
1368
- ) -> typing.Union[Vector, Quaternion]:
1338
+ other: typing.Sequence[float] | Vector | typing.Sequence[float] | Quaternion,
1339
+ ) -> Vector | Quaternion:
1369
1340
  """
1370
1341
 
1371
1342
  :param other:
1372
- :type other: typing.Union[typing.Sequence[float], Vector, typing.Sequence[float], Quaternion]
1343
+ :type other: typing.Sequence[float] | Vector | typing.Sequence[float] | Quaternion
1373
1344
  :return:
1374
- :rtype: typing.Union[Vector, Quaternion]
1345
+ :rtype: Vector | Quaternion
1375
1346
  """
1376
1347
  ...
1377
1348
 
1378
- def __radd__(
1379
- self, other: typing.Union[typing.Sequence[float], Quaternion]
1380
- ) -> Quaternion:
1349
+ def __radd__(self, other: typing.Sequence[float] | Quaternion) -> Quaternion:
1381
1350
  """
1382
1351
 
1383
1352
  :param other:
1384
- :type other: typing.Union[typing.Sequence[float], Quaternion]
1353
+ :type other: typing.Sequence[float] | Quaternion
1385
1354
  :return:
1386
1355
  :rtype: Quaternion
1387
1356
  """
1388
1357
  ...
1389
1358
 
1390
- def __rsub__(
1391
- self, other: typing.Union[typing.Sequence[float], Quaternion]
1392
- ) -> Quaternion:
1359
+ def __rsub__(self, other: typing.Sequence[float] | Quaternion) -> Quaternion:
1393
1360
  """
1394
1361
 
1395
1362
  :param other:
1396
- :type other: typing.Union[typing.Sequence[float], Quaternion]
1363
+ :type other: typing.Sequence[float] | Quaternion
1397
1364
  :return:
1398
1365
  :rtype: Quaternion
1399
1366
  """
1400
1367
  ...
1401
1368
 
1402
1369
  def __rmul__(
1403
- self, other: typing.Union[int, float, typing.Sequence[float], Quaternion]
1370
+ self, other: int | float | typing.Sequence[float] | Quaternion
1404
1371
  ) -> Quaternion:
1405
1372
  """
1406
1373
 
1407
1374
  :param other:
1408
- :type other: typing.Union[int, float, typing.Sequence[float], Quaternion]
1375
+ :type other: int | float | typing.Sequence[float] | Quaternion
1409
1376
  :return:
1410
1377
  :rtype: Quaternion
1411
1378
  """
1412
1379
  ...
1413
1380
 
1414
1381
  def __imul__(
1415
- self, other: typing.Union[int, float, typing.Sequence[float], Quaternion]
1382
+ self, other: int | float | typing.Sequence[float] | Quaternion
1416
1383
  ) -> Quaternion:
1417
1384
  """
1418
1385
 
1419
1386
  :param other:
1420
- :type other: typing.Union[int, float, typing.Sequence[float], Quaternion]
1387
+ :type other: int | float | typing.Sequence[float] | Quaternion
1421
1388
  :return:
1422
1389
  :rtype: Quaternion
1423
1390
  """
@@ -2545,14 +2512,12 @@ class Vector:
2545
2512
  ...
2546
2513
 
2547
2514
  def angle(
2548
- self,
2549
- other: typing.Union[typing.Sequence[float], Vector],
2550
- fallback: typing.Any = None,
2515
+ self, other: typing.Sequence[float] | Vector, fallback: typing.Any = None
2551
2516
  ) -> float:
2552
2517
  """Return the angle between two vectors.
2553
2518
 
2554
2519
  :param other: another vector to compare the angle with
2555
- :type other: typing.Union[typing.Sequence[float], Vector]
2520
+ :type other: typing.Sequence[float] | Vector
2556
2521
  :param fallback: return this when the angle can't be calculated (zero length vector),
2557
2522
  (instead of raising a `ValueError`).
2558
2523
  :type fallback: typing.Any
@@ -2562,12 +2527,12 @@ class Vector:
2562
2527
  ...
2563
2528
 
2564
2529
  def angle_signed(
2565
- self, other: typing.Union[typing.Sequence[float], Vector], fallback: typing.Any
2530
+ self, other: typing.Sequence[float] | Vector, fallback: typing.Any
2566
2531
  ) -> float:
2567
2532
  """Return the signed angle between two 2D vectors (clockwise is positive).
2568
2533
 
2569
2534
  :param other: another vector to compare the angle with
2570
- :type other: typing.Union[typing.Sequence[float], Vector]
2535
+ :type other: typing.Sequence[float] | Vector
2571
2536
  :param fallback: return this when the angle can't be calculated (zero length vector),
2572
2537
  (instead of raising a `ValueError`).
2573
2538
  :type fallback: typing.Any
@@ -2584,21 +2549,21 @@ class Vector:
2584
2549
  """
2585
2550
  ...
2586
2551
 
2587
- def cross(self, other: typing.Union[typing.Sequence[float], Vector]) -> Vector:
2552
+ def cross(self, other: typing.Sequence[float] | Vector) -> Vector:
2588
2553
  """Return the cross product of this vector and another.
2589
2554
 
2590
2555
  :param other: The other vector to perform the cross product with.
2591
- :type other: typing.Union[typing.Sequence[float], Vector]
2556
+ :type other: typing.Sequence[float] | Vector
2592
2557
  :return: The cross product.
2593
2558
  :rtype: Vector
2594
2559
  """
2595
2560
  ...
2596
2561
 
2597
- def dot(self, other: typing.Union[typing.Sequence[float], Vector]) -> float:
2562
+ def dot(self, other: typing.Sequence[float] | Vector) -> float:
2598
2563
  """Return the dot product of this vector and another.
2599
2564
 
2600
2565
  :param other: The other vector to perform the dot product with.
2601
- :type other: typing.Union[typing.Sequence[float], Vector]
2566
+ :type other: typing.Sequence[float] | Vector
2602
2567
  :return: The dot product.
2603
2568
  :rtype: float
2604
2569
  """
@@ -2612,13 +2577,11 @@ class Vector:
2612
2577
  """
2613
2578
  ...
2614
2579
 
2615
- def lerp(
2616
- self, other: typing.Union[typing.Sequence[float], Vector], factor: float
2617
- ) -> Vector:
2580
+ def lerp(self, other: typing.Sequence[float] | Vector, factor: float) -> Vector:
2618
2581
  """Returns the interpolation of two vectors.
2619
2582
 
2620
2583
  :param other: value to interpolate with.
2621
- :type other: typing.Union[typing.Sequence[float], Vector]
2584
+ :type other: typing.Sequence[float] | Vector
2622
2585
  :param factor: The interpolation value in [0.0, 1.0].
2623
2586
  :type factor: float
2624
2587
  :return: The interpolated vector.
@@ -2650,21 +2613,21 @@ class Vector:
2650
2613
  """
2651
2614
  ...
2652
2615
 
2653
- def project(self, other: typing.Union[typing.Sequence[float], Vector]) -> Vector:
2616
+ def project(self, other: typing.Sequence[float] | Vector) -> Vector:
2654
2617
  """Return the projection of this vector onto the other.
2655
2618
 
2656
2619
  :param other: second vector.
2657
- :type other: typing.Union[typing.Sequence[float], Vector]
2620
+ :type other: typing.Sequence[float] | Vector
2658
2621
  :return: the parallel projection vector
2659
2622
  :rtype: Vector
2660
2623
  """
2661
2624
  ...
2662
2625
 
2663
- def reflect(self, mirror: typing.Union[typing.Sequence[float], Vector]) -> Vector:
2626
+ def reflect(self, mirror: typing.Sequence[float] | Vector) -> Vector:
2664
2627
  """Return the reflection vector from the mirror argument.
2665
2628
 
2666
2629
  :param mirror: This vector could be a normal from the reflecting surface.
2667
- :type mirror: typing.Union[typing.Sequence[float], Vector]
2630
+ :type mirror: typing.Sequence[float] | Vector
2668
2631
  :return: The reflected vector matching the size of this vector.
2669
2632
  :rtype: Vector
2670
2633
  """
@@ -2700,30 +2663,26 @@ class Vector:
2700
2663
 
2701
2664
  def rotate(
2702
2665
  self,
2703
- other: typing.Union[
2704
- typing.Sequence[float],
2705
- Euler,
2706
- typing.Sequence[float],
2707
- Quaternion,
2708
- typing.Sequence[float],
2709
- Matrix,
2710
- ],
2666
+ other: typing.Sequence[float]
2667
+ | Euler
2668
+ | typing.Sequence[float]
2669
+ | Quaternion
2670
+ | typing.Sequence[float]
2671
+ | Matrix,
2711
2672
  ):
2712
2673
  """Rotate the vector by a rotation value.
2713
2674
 
2714
2675
  :param other: rotation component of mathutils value
2715
- :type other: typing.Union[typing.Sequence[float], Euler, typing.Sequence[float], Quaternion, typing.Sequence[float], Matrix]
2676
+ :type other: typing.Sequence[float] | Euler | typing.Sequence[float] | Quaternion | typing.Sequence[float] | Matrix
2716
2677
  """
2717
2678
  ...
2718
2679
 
2719
- def rotation_difference(
2720
- self, other: typing.Union[typing.Sequence[float], Vector]
2721
- ) -> Quaternion:
2680
+ def rotation_difference(self, other: typing.Sequence[float] | Vector) -> Quaternion:
2722
2681
  """Returns a quaternion representing the rotational difference between this
2723
2682
  vector and another.
2724
2683
 
2725
2684
  :param other: second vector.
2726
- :type other: typing.Union[typing.Sequence[float], Vector]
2685
+ :type other: typing.Sequence[float] | Vector
2727
2686
  :return: the rotational difference between the two vectors.
2728
2687
  :rtype: Quaternion
2729
2688
  """
@@ -2731,14 +2690,14 @@ class Vector:
2731
2690
 
2732
2691
  def slerp(
2733
2692
  self,
2734
- other: typing.Union[typing.Sequence[float], Vector],
2693
+ other: typing.Sequence[float] | Vector,
2735
2694
  factor: float,
2736
2695
  fallback: typing.Any = None,
2737
2696
  ) -> Vector:
2738
2697
  """Returns the interpolation of two non-zero vectors (spherical coordinates).
2739
2698
 
2740
2699
  :param other: value to interpolate with.
2741
- :type other: typing.Union[typing.Sequence[float], Vector]
2700
+ :type other: typing.Sequence[float] | Vector
2742
2701
  :param factor: The interpolation value typically in [0.0, 1.0].
2743
2702
  :type factor: float
2744
2703
  :param fallback: return this when the vector can't be calculated (zero length vector or direct opposites),
@@ -2785,13 +2744,13 @@ class Vector:
2785
2744
  """
2786
2745
  ...
2787
2746
 
2788
- def to_tuple(self, precision: int = -1) -> typing.Tuple:
2747
+ def to_tuple(self, precision: int = -1) -> tuple:
2789
2748
  """Return this vector as a tuple with.
2790
2749
 
2791
2750
  :param precision: The number to round the value to in [-1, 21].
2792
2751
  :type precision: int
2793
2752
  :return: the values of the vector rounded by precision
2794
- :rtype: typing.Tuple
2753
+ :rtype: tuple
2795
2754
  """
2796
2755
  ...
2797
2756
 
@@ -2844,158 +2803,155 @@ class Vector:
2844
2803
  """
2845
2804
  ...
2846
2805
 
2847
- def __add__(self, other: typing.Union[typing.Sequence[float], Vector]) -> Vector:
2806
+ def __add__(self, other: typing.Sequence[float] | Vector) -> Vector:
2848
2807
  """
2849
2808
 
2850
2809
  :param other:
2851
- :type other: typing.Union[typing.Sequence[float], Vector]
2810
+ :type other: typing.Sequence[float] | Vector
2852
2811
  :return:
2853
2812
  :rtype: Vector
2854
2813
  """
2855
2814
  ...
2856
2815
 
2857
- def __sub__(self, other: typing.Union[typing.Sequence[float], Vector]) -> Vector:
2816
+ def __sub__(self, other: typing.Sequence[float] | Vector) -> Vector:
2858
2817
  """
2859
2818
 
2860
2819
  :param other:
2861
- :type other: typing.Union[typing.Sequence[float], Vector]
2820
+ :type other: typing.Sequence[float] | Vector
2862
2821
  :return:
2863
2822
  :rtype: Vector
2864
2823
  """
2865
2824
  ...
2866
2825
 
2867
- def __mul__(self, other: typing.Union[int, float]) -> Vector:
2826
+ def __mul__(self, other: int | float) -> Vector:
2868
2827
  """
2869
2828
 
2870
2829
  :param other:
2871
- :type other: typing.Union[int, float]
2830
+ :type other: int | float
2872
2831
  :return:
2873
2832
  :rtype: Vector
2874
2833
  """
2875
2834
  ...
2876
2835
 
2877
- def __truediv__(self, other: typing.Union[int, float]) -> Vector:
2836
+ def __truediv__(self, other: int | float) -> Vector:
2878
2837
  """
2879
2838
 
2880
2839
  :param other:
2881
- :type other: typing.Union[int, float]
2840
+ :type other: int | float
2882
2841
  :return:
2883
2842
  :rtype: Vector
2884
2843
  """
2885
2844
  ...
2886
2845
 
2887
2846
  @typing.overload
2888
- def __matmul__(self, other: typing.Union[typing.Sequence[float], Vector]) -> float:
2847
+ def __matmul__(self, other: typing.Sequence[float] | Vector) -> float:
2889
2848
  """
2890
2849
 
2891
2850
  :param other:
2892
- :type other: typing.Union[typing.Sequence[float], Vector]
2851
+ :type other: typing.Sequence[float] | Vector
2893
2852
  :return:
2894
2853
  :rtype: float
2895
2854
  """
2896
2855
  ...
2897
2856
 
2898
2857
  @typing.overload
2899
- def __matmul__(self, other: typing.Union[typing.Sequence[float], Matrix]) -> Vector:
2858
+ def __matmul__(self, other: typing.Sequence[float] | Matrix) -> Vector:
2900
2859
  """
2901
2860
 
2902
2861
  :param other:
2903
- :type other: typing.Union[typing.Sequence[float], Matrix]
2862
+ :type other: typing.Sequence[float] | Matrix
2904
2863
  :return:
2905
2864
  :rtype: Vector
2906
2865
  """
2907
2866
  ...
2908
2867
 
2909
2868
  def __matmul__(
2910
- self,
2911
- other: typing.Union[
2912
- typing.Sequence[float], Vector, typing.Sequence[float], Matrix
2913
- ],
2914
- ) -> typing.Union[Vector, float]:
2869
+ self, other: typing.Sequence[float] | Vector | typing.Sequence[float] | Matrix
2870
+ ) -> Vector | float:
2915
2871
  """
2916
2872
 
2917
2873
  :param other:
2918
- :type other: typing.Union[typing.Sequence[float], Vector, typing.Sequence[float], Matrix]
2874
+ :type other: typing.Sequence[float] | Vector | typing.Sequence[float] | Matrix
2919
2875
  :return:
2920
- :rtype: typing.Union[Vector, float]
2876
+ :rtype: Vector | float
2921
2877
  """
2922
2878
  ...
2923
2879
 
2924
- def __radd__(self, other: typing.Union[typing.Sequence[float], Vector]) -> Vector:
2880
+ def __radd__(self, other: typing.Sequence[float] | Vector) -> Vector:
2925
2881
  """
2926
2882
 
2927
2883
  :param other:
2928
- :type other: typing.Union[typing.Sequence[float], Vector]
2884
+ :type other: typing.Sequence[float] | Vector
2929
2885
  :return:
2930
2886
  :rtype: Vector
2931
2887
  """
2932
2888
  ...
2933
2889
 
2934
- def __rsub__(self, other: typing.Union[typing.Sequence[float], Vector]) -> Vector:
2890
+ def __rsub__(self, other: typing.Sequence[float] | Vector) -> Vector:
2935
2891
  """
2936
2892
 
2937
2893
  :param other:
2938
- :type other: typing.Union[typing.Sequence[float], Vector]
2894
+ :type other: typing.Sequence[float] | Vector
2939
2895
  :return:
2940
2896
  :rtype: Vector
2941
2897
  """
2942
2898
  ...
2943
2899
 
2944
- def __rmul__(self, other: typing.Union[int, float]) -> Vector:
2900
+ def __rmul__(self, other: int | float) -> Vector:
2945
2901
  """
2946
2902
 
2947
2903
  :param other:
2948
- :type other: typing.Union[int, float]
2904
+ :type other: int | float
2949
2905
  :return:
2950
2906
  :rtype: Vector
2951
2907
  """
2952
2908
  ...
2953
2909
 
2954
- def __rtruediv__(self, other: typing.Union[int, float]) -> Vector:
2910
+ def __rtruediv__(self, other: int | float) -> Vector:
2955
2911
  """
2956
2912
 
2957
2913
  :param other:
2958
- :type other: typing.Union[int, float]
2914
+ :type other: int | float
2959
2915
  :return:
2960
2916
  :rtype: Vector
2961
2917
  """
2962
2918
  ...
2963
2919
 
2964
- def __iadd__(self, other: typing.Union[typing.Sequence[float], Vector]) -> Vector:
2920
+ def __iadd__(self, other: typing.Sequence[float] | Vector) -> Vector:
2965
2921
  """
2966
2922
 
2967
2923
  :param other:
2968
- :type other: typing.Union[typing.Sequence[float], Vector]
2924
+ :type other: typing.Sequence[float] | Vector
2969
2925
  :return:
2970
2926
  :rtype: Vector
2971
2927
  """
2972
2928
  ...
2973
2929
 
2974
- def __isub__(self, other: typing.Union[typing.Sequence[float], Vector]) -> Vector:
2930
+ def __isub__(self, other: typing.Sequence[float] | Vector) -> Vector:
2975
2931
  """
2976
2932
 
2977
2933
  :param other:
2978
- :type other: typing.Union[typing.Sequence[float], Vector]
2934
+ :type other: typing.Sequence[float] | Vector
2979
2935
  :return:
2980
2936
  :rtype: Vector
2981
2937
  """
2982
2938
  ...
2983
2939
 
2984
- def __imul__(self, other: typing.Union[int, float]) -> Vector:
2940
+ def __imul__(self, other: int | float) -> Vector:
2985
2941
  """
2986
2942
 
2987
2943
  :param other:
2988
- :type other: typing.Union[int, float]
2944
+ :type other: int | float
2989
2945
  :return:
2990
2946
  :rtype: Vector
2991
2947
  """
2992
2948
  ...
2993
2949
 
2994
- def __itruediv__(self, other: typing.Union[int, float]) -> Vector:
2950
+ def __itruediv__(self, other: int | float) -> Vector:
2995
2951
  """
2996
2952
 
2997
2953
  :param other:
2998
- :type other: typing.Union[int, float]
2954
+ :type other: int | float
2999
2955
  :return:
3000
2956
  :rtype: Vector
3001
2957
  """