fake-bpy-module 20250630__py3-none-any.whl → 20250828__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 (246) hide show
  1. _bpy_internal/__init__.pyi +1 -0
  2. _bpy_internal/assets/__init__.pyi +5 -0
  3. _bpy_internal/assets/remote_library_listing/__init__.pyi +5 -0
  4. _bpy_internal/assets/remote_library_listing/blender_asset_library_openapi/__init__.pyi +13 -0
  5. _bpy_internal/extensions/wheel_manager/__init__.pyi +1 -1
  6. _bpy_internal/grease_pencil/stroke/__init__.pyi +2 -2
  7. _bpy_types/__init__.pyi +1594 -0
  8. aud/__init__.pyi +84 -31
  9. bl_i18n_utils/settings/__init__.pyi +1 -1
  10. bl_i18n_utils/utils/__init__.pyi +4 -4
  11. bl_math/__init__.pyi +1 -1
  12. bl_operators/add_mesh_torus/__init__.pyi +2 -1
  13. bl_operators/anim/__init__.pyi +15 -14
  14. bl_operators/assets/__init__.pyi +4 -3
  15. bl_operators/bone_selection_sets/__init__.pyi +15 -14
  16. bl_operators/clip/__init__.pyi +12 -11
  17. bl_operators/connect_to_output/__init__.pyi +2 -1
  18. bl_operators/console/__init__.pyi +6 -5
  19. bl_operators/constraint/__init__.pyi +6 -5
  20. bl_operators/file/__init__.pyi +6 -5
  21. bl_operators/freestyle/__init__.pyi +5 -4
  22. bl_operators/geometry_nodes/__init__.pyi +5 -4
  23. bl_operators/grease_pencil/__init__.pyi +2 -1
  24. bl_operators/image/__init__.pyi +6 -5
  25. bl_operators/image_as_planes/__init__.pyi +3 -2
  26. bl_operators/mesh/__init__.pyi +4 -3
  27. bl_operators/node/__init__.pyi +18 -17
  28. bl_operators/object/__init__.pyi +17 -16
  29. bl_operators/object_align/__init__.pyi +2 -1
  30. bl_operators/object_quick_effects/__init__.pyi +5 -4
  31. bl_operators/object_randomize_transform/__init__.pyi +2 -1
  32. bl_operators/presets/__init__.pyi +26 -25
  33. bl_operators/rigidbody/__init__.pyi +4 -3
  34. bl_operators/screen_play_rendered_anim/__init__.pyi +2 -1
  35. bl_operators/sequencer/__init__.pyi +12 -11
  36. bl_operators/spreadsheet/__init__.pyi +2 -1
  37. bl_operators/userpref/__init__.pyi +26 -25
  38. bl_operators/uvcalc_follow_active/__init__.pyi +2 -1
  39. bl_operators/uvcalc_lightmap/__init__.pyi +3 -2
  40. bl_operators/uvcalc_transform/__init__.pyi +5 -4
  41. bl_operators/vertexpaint_dirt/__init__.pyi +2 -1
  42. bl_operators/view3d/__init__.pyi +9 -8
  43. bl_operators/wm/__init__.pyi +48 -47
  44. bl_operators/world/__init__.pyi +3 -2
  45. bl_ui/__init__.pyi +4 -3
  46. bl_ui/anim/__init__.pyi +2 -1
  47. bl_ui/asset_shelf/__init__.pyi +2 -1
  48. bl_ui/generic_ui_list/__init__.pyi +6 -5
  49. bl_ui/node_add_menu/__init__.pyi +3 -2
  50. bl_ui/node_add_menu_compositor/__init__.pyi +19 -18
  51. bl_ui/node_add_menu_geometry/__init__.pyi +133 -54
  52. bl_ui/node_add_menu_shader/__init__.pyi +11 -10
  53. bl_ui/node_add_menu_texture/__init__.pyi +10 -9
  54. bl_ui/properties_collection/__init__.pyi +9 -8
  55. bl_ui/properties_constraint/__init__.pyi +78 -77
  56. bl_ui/properties_data_armature/__init__.pyi +22 -21
  57. bl_ui/properties_data_bone/__init__.pyi +12 -11
  58. bl_ui/properties_data_camera/__init__.pyi +18 -17
  59. bl_ui/properties_data_curve/__init__.pyi +18 -17
  60. bl_ui/properties_data_curves/__init__.pyi +11 -10
  61. bl_ui/properties_data_empty/__init__.pyi +3 -2
  62. bl_ui/properties_data_grease_pencil/__init__.pyi +23 -22
  63. bl_ui/properties_data_lattice/__init__.pyi +7 -6
  64. bl_ui/properties_data_light/__init__.pyi +13 -12
  65. bl_ui/properties_data_lightprobe/__init__.pyi +16 -15
  66. bl_ui/properties_data_mesh/__init__.pyi +48 -22
  67. bl_ui/properties_data_metaball/__init__.pyi +9 -8
  68. bl_ui/properties_data_modifier/__init__.pyi +10 -9
  69. bl_ui/properties_data_pointcloud/__init__.pyi +8 -7
  70. bl_ui/properties_data_shaderfx/__init__.pyi +2 -1
  71. bl_ui/properties_data_speaker/__init__.pyi +9 -8
  72. bl_ui/properties_data_volume/__init__.pyi +12 -11
  73. bl_ui/properties_freestyle/__init__.pyi +27 -26
  74. bl_ui/properties_grease_pencil_common/__init__.pyi +11 -10
  75. bl_ui/properties_mask_common/__init__.pyi +8 -7
  76. bl_ui/properties_material/__init__.pyi +19 -18
  77. bl_ui/properties_material_gpencil/__init__.pyi +14 -13
  78. bl_ui/properties_object/__init__.pyi +24 -23
  79. bl_ui/properties_output/__init__.pyi +21 -20
  80. bl_ui/properties_paint_common/__init__.pyi +8 -4
  81. bl_ui/properties_particle/__init__.pyi +58 -55
  82. bl_ui/properties_physics_cloth/__init__.pyi +15 -14
  83. bl_ui/properties_physics_common/__init__.pyi +2 -1
  84. bl_ui/properties_physics_dynamicpaint/__init__.pyi +23 -22
  85. bl_ui/properties_physics_field/__init__.pyi +11 -10
  86. bl_ui/properties_physics_fluid/__init__.pyi +29 -28
  87. bl_ui/properties_physics_geometry_nodes/__init__.pyi +2 -1
  88. bl_ui/properties_physics_rigidbody/__init__.pyi +9 -8
  89. bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +14 -13
  90. bl_ui/properties_physics_softbody/__init__.pyi +16 -15
  91. bl_ui/properties_render/__init__.pyi +44 -74
  92. bl_ui/properties_scene/__init__.pyi +48 -18
  93. bl_ui/properties_texture/__init__.pyi +30 -29
  94. bl_ui/properties_view_layer/__init__.pyi +52 -14
  95. bl_ui/properties_workspace/__init__.pyi +6 -5
  96. bl_ui/properties_world/__init__.pyi +14 -13
  97. bl_ui/space_clip/__init__.pyi +76 -73
  98. bl_ui/space_console/__init__.pyi +7 -6
  99. bl_ui/space_dopesheet/__init__.pyi +32 -31
  100. bl_ui/space_filebrowser/__init__.pyi +33 -30
  101. bl_ui/space_graph/__init__.pyi +24 -23
  102. bl_ui/space_image/__init__.pyi +88 -72
  103. bl_ui/space_info/__init__.pyi +7 -6
  104. bl_ui/space_nla/__init__.pyi +22 -19
  105. bl_ui/space_node/__init__.pyi +66 -31
  106. bl_ui/space_outliner/__init__.pyi +16 -15
  107. bl_ui/space_properties/__init__.pyi +5 -4
  108. bl_ui/space_sequencer/__init__.pyi +131 -91
  109. bl_ui/space_spreadsheet/__init__.pyi +4 -3
  110. bl_ui/space_statusbar/__init__.pyi +2 -1
  111. bl_ui/space_text/__init__.pyi +17 -16
  112. bl_ui/space_time/__init__.pyi +7 -6
  113. bl_ui/space_toolsystem_common/__init__.pyi +2 -2
  114. bl_ui/space_toolsystem_toolbar/__init__.pyi +23 -5
  115. bl_ui/space_topbar/__init__.pyi +28 -27
  116. bl_ui/space_userpref/__init__.pyi +103 -92
  117. bl_ui/space_view3d/__init__.pyi +268 -266
  118. bl_ui/space_view3d_toolbar/__init__.pyi +106 -99
  119. blf/__init__.pyi +3 -5
  120. bmesh/__init__.pyi +2 -2
  121. bmesh/geometry/__init__.pyi +1 -1
  122. bmesh/ops/__init__.pyi +29 -14
  123. bmesh/types/__init__.pyi +41 -46
  124. bmesh/utils/__init__.pyi +1 -0
  125. bpy/__init__.pyi +1 -1
  126. bpy/app/__init__.pyi +34 -37
  127. bpy/app/handlers/__init__.pyi +19 -19
  128. bpy/app/timers/__init__.pyi +2 -1
  129. bpy/app/translations/__init__.pyi +8 -8
  130. bpy/msgbus/__init__.pyi +3 -2
  131. bpy/ops/action/__init__.pyi +58 -20
  132. bpy/ops/anim/__init__.pyi +115 -31
  133. bpy/ops/armature/__init__.pyi +59 -19
  134. bpy/ops/asset/__init__.pyi +35 -11
  135. bpy/ops/boid/__init__.pyi +21 -7
  136. bpy/ops/brush/__init__.pyi +10 -4
  137. bpy/ops/buttons/__init__.pyi +12 -4
  138. bpy/ops/cachefile/__init__.pyi +6 -2
  139. bpy/ops/clip/__init__.pyi +132 -46
  140. bpy/ops/collection/__init__.pyi +23 -4
  141. bpy/ops/console/__init__.pyi +30 -10
  142. bpy/ops/constraint/__init__.pyi +12 -6
  143. bpy/ops/curve/__init__.pyi +72 -24
  144. bpy/ops/curves/__init__.pyi +68 -20
  145. bpy/ops/cycles/__init__.pyi +4 -2
  146. bpy/ops/dpaint/__init__.pyi +11 -3
  147. bpy/ops/ed/__init__.pyi +34 -10
  148. bpy/ops/export_scene/__init__.pyi +15 -15
  149. bpy/ops/extensions/__init__.pyi +45 -15
  150. bpy/ops/file/__init__.pyi +81 -30
  151. bpy/ops/fluid/__init__.pyi +39 -13
  152. bpy/ops/font/__init__.pyi +30 -10
  153. bpy/ops/geometry/__init__.pyi +9 -3
  154. bpy/ops/gizmogroup/__init__.pyi +3 -1
  155. bpy/ops/gpencil/__init__.pyi +20 -8
  156. bpy/ops/graph/__init__.pyi +67 -29
  157. bpy/ops/grease_pencil/__init__.pyi +178 -49
  158. bpy/ops/image/__init__.pyi +68 -58
  159. bpy/ops/import_anim/__init__.pyi +2 -2
  160. bpy/ops/import_curve/__init__.pyi +3 -0
  161. bpy/ops/import_scene/__init__.pyi +15 -2
  162. bpy/ops/info/__init__.pyi +12 -4
  163. bpy/ops/lattice/__init__.pyi +9 -3
  164. bpy/ops/marker/__init__.pyi +8 -2
  165. bpy/ops/mask/__init__.pyi +53 -19
  166. bpy/ops/material/__init__.pyi +15 -3
  167. bpy/ops/mball/__init__.pyi +3 -1
  168. bpy/ops/mesh/__init__.pyi +116 -45
  169. bpy/ops/nla/__init__.pyi +67 -25
  170. bpy/ops/node/__init__.pyi +285 -119
  171. bpy/ops/object/__init__.pyi +278 -116
  172. bpy/ops/outliner/__init__.pyi +145 -49
  173. bpy/ops/paint/__init__.pyi +65 -37
  174. bpy/ops/paintcurve/__init__.pyi +16 -4
  175. bpy/ops/palette/__init__.pyi +11 -3
  176. bpy/ops/particle/__init__.pyi +66 -24
  177. bpy/ops/pointcloud/__init__.pyi +9 -3
  178. bpy/ops/pose/__init__.pyi +80 -28
  179. bpy/ops/poselib/__init__.pyi +19 -7
  180. bpy/ops/preferences/__init__.pyi +29 -11
  181. bpy/ops/ptcache/__init__.pyi +17 -5
  182. bpy/ops/render/__init__.pyi +10 -4
  183. bpy/ops/rigidbody/__init__.pyi +19 -7
  184. bpy/ops/scene/__init__.pyi +93 -22
  185. bpy/ops/screen/__init__.pyi +58 -20
  186. bpy/ops/script/__init__.pyi +3 -1
  187. bpy/ops/sculpt/__init__.pyi +30 -14
  188. bpy/ops/sculpt_curves/__init__.pyi +4 -2
  189. bpy/ops/sequencer/__init__.pyi +262 -125
  190. bpy/ops/sound/__init__.pyi +13 -5
  191. bpy/ops/spreadsheet/__init__.pyi +15 -5
  192. bpy/ops/text/__init__.pyi +85 -25
  193. bpy/ops/texture/__init__.pyi +11 -3
  194. bpy/ops/transform/__init__.pyi +7 -3
  195. bpy/ops/ui/__init__.pyi +98 -53
  196. bpy/ops/uv/__init__.pyi +43 -17
  197. bpy/ops/view2d/__init__.pyi +13 -3
  198. bpy/ops/view3d/__init__.pyi +116 -38
  199. bpy/ops/wm/__init__.pyi +144 -86
  200. bpy/ops/workspace/__init__.pyi +31 -6
  201. bpy/ops/world/__init__.pyi +9 -3
  202. bpy/path/__init__.pyi +1 -1
  203. bpy/props/__init__.pyi +31 -31
  204. bpy/stub_internal/rna_enums/__init__.pyi +40 -25
  205. bpy/types/__init__.pyi +56561 -40144
  206. bpy/utils/__init__.pyi +8 -8
  207. bpy/utils/previews/__init__.pyi +2 -2
  208. bpy/utils/units/__init__.pyi +5 -3
  209. bpy_extras/anim_utils/__init__.pyi +1 -1
  210. bpy_extras/id_map_utils/__init__.pyi +1 -1
  211. bpy_extras/image_utils/__init__.pyi +2 -2
  212. bpy_extras/io_utils/__init__.pyi +5 -5
  213. bpy_extras/keyconfig_utils/__init__.pyi +1 -1
  214. bpy_extras/node_shader_utils/__init__.pyi +1 -1
  215. bpy_extras/object_utils/__init__.pyi +1 -1
  216. bpy_extras/wm_utils/progress_report/__init__.pyi +1 -1
  217. {fake_bpy_module-20250630.dist-info → fake_bpy_module-20250828.dist-info}/METADATA +1 -1
  218. fake_bpy_module-20250828.dist-info/RECORD +370 -0
  219. {fake_bpy_module-20250630.dist-info → fake_bpy_module-20250828.dist-info}/top_level.txt +1 -1
  220. freestyle/chainingiterators/__init__.pyi +5 -5
  221. freestyle/predicates/__init__.pyi +2 -2
  222. freestyle/shaders/__init__.pyi +16 -17
  223. freestyle/types/__init__.pyi +25 -27
  224. freestyle/utils/__init__.pyi +5 -5
  225. gpu/platform/__init__.pyi +2 -2
  226. gpu/shader/__init__.pyi +3 -3
  227. gpu/state/__init__.pyi +1 -1
  228. gpu/texture/__init__.pyi +3 -3
  229. gpu/types/__init__.pyi +25 -14
  230. gpu_extras/batch/__init__.pyi +1 -1
  231. idprop/types/__init__.pyi +2 -2
  232. imbuf/__init__.pyi +1 -1
  233. imbuf/types/__init__.pyi +12 -6
  234. keyingsets_builtins/__init__.pyi +23 -22
  235. mathutils/__init__.pyi +157 -61
  236. mathutils/bvhtree/__init__.pyi +20 -6
  237. mathutils/geometry/__init__.pyi +54 -12
  238. mathutils/interpolate/__init__.pyi +4 -2
  239. mathutils/kdtree/__init__.pyi +1 -0
  240. mathutils/noise/__init__.pyi +61 -44
  241. rna_info/__init__.pyi +4 -1
  242. rna_prop_ui/__init__.pyi +1 -1
  243. bpy_types/__init__.pyi +0 -30
  244. fake_bpy_module-20250630.dist-info/RECORD +0 -367
  245. {bpy_types → _bpy_types}/py.typed +0 -0
  246. {fake_bpy_module-20250630.dist-info → fake_bpy_module-20250828.dist-info}/WHEEL +0 -0
mathutils/__init__.pyi CHANGED
@@ -57,10 +57,10 @@ class Color:
57
57
  :type: float
58
58
  """
59
59
 
60
- hsv: Vector | collections.abc.Sequence[float]
60
+ hsv: tuple[float, float, float]
61
61
  """ HSV Values in [0, 1].
62
62
 
63
- :type: Vector | collections.abc.Sequence[float]
63
+ :type: tuple[float, float, float]
64
64
  """
65
65
 
66
66
  is_frozen: bool
@@ -419,11 +419,16 @@ class Euler:
419
419
  :rtype: typing_extensions.Self
420
420
  """
421
421
 
422
- def make_compatible(self, other) -> None:
422
+ def make_compatible(
423
+ self,
424
+ other: collections.abc.Sequence[float] | typing_extensions.Self,
425
+ /,
426
+ ) -> None:
423
427
  """Make this euler compatible with another,
424
428
  so interpolating between them works as intended.
425
429
 
426
- :param other:
430
+ :param other: Other euler rotation.
431
+ :type other: collections.abc.Sequence[float] | typing_extensions.Self
427
432
  """
428
433
 
429
434
  def rotate(
@@ -433,6 +438,7 @@ class Euler:
433
438
  | collections.abc.Sequence[collections.abc.Sequence[float]]
434
439
  | collections.abc.Sequence[float]
435
440
  | typing_extensions.Self,
441
+ /,
436
442
  ) -> None:
437
443
  """Rotates the euler by another mathutils value.
438
444
 
@@ -440,12 +446,16 @@ class Euler:
440
446
  :type other: Matrix | Quaternion | collections.abc.Sequence[collections.abc.Sequence[float]] | collections.abc.Sequence[float] | typing_extensions.Self
441
447
  """
442
448
 
443
- def rotate_axis(self, axis: str, angle: float) -> None:
449
+ def rotate_axis(
450
+ self,
451
+ axis,
452
+ angle: float,
453
+ /,
454
+ ) -> None:
444
455
  """Rotates the euler a certain amount and returning a unique euler rotation
445
456
  (no 720 degree pitches).
446
457
 
447
- :param axis: single character in ['X, 'Y', 'Z'].
448
- :type axis: str
458
+ :param axis: An axis string.
449
459
  :param angle: angle in radians.
450
460
  :type angle: float
451
461
  """
@@ -611,7 +621,9 @@ class Matrix:
611
621
 
612
622
  @classmethod
613
623
  def Diagonal(
614
- cls, vector: Vector | collections.abc.Sequence[float]
624
+ cls,
625
+ vector: Vector | collections.abc.Sequence[float],
626
+ /,
615
627
  ) -> typing_extensions.Self:
616
628
  """Create a diagonal (scaling) matrix using the values from the vector.
617
629
 
@@ -622,7 +634,11 @@ class Matrix:
622
634
  """
623
635
 
624
636
  @classmethod
625
- def Identity(cls, size: int) -> typing_extensions.Self:
637
+ def Identity(
638
+ cls,
639
+ size: int,
640
+ /,
641
+ ) -> typing_extensions.Self:
626
642
  """Create an identity matrix.
627
643
 
628
644
  :param size: The size of the identity matrix to construct [2, 4].
@@ -642,6 +658,7 @@ class Matrix:
642
658
  | collections.abc.Sequence[float]
643
659
  | typing_extensions.Self,
644
660
  scale: None | Vector | collections.abc.Sequence[float],
661
+ /,
645
662
  ) -> typing_extensions.Self:
646
663
  """Create a matrix combining translation, rotation and scale,
647
664
  acting as the inverse of the decompose() method.Any of the inputs may be replaced with None if not needed.
@@ -658,14 +675,17 @@ class Matrix:
658
675
 
659
676
  @classmethod
660
677
  def OrthoProjection(
661
- cls, axis: Vector | collections.abc.Sequence[float] | str, size: int
678
+ cls,
679
+ axis: Vector | collections.abc.Sequence[float],
680
+ size: int,
681
+ /,
662
682
  ) -> typing_extensions.Self:
663
683
  """Create a matrix to represent an orthographic projection.
664
684
 
665
- :param axis: Can be any of the following: ['X', 'Y', 'XY', 'XZ', 'YZ'],
685
+ :param axis: An axis string,
666
686
  where a single axis is for a 2D matrix.
667
687
  Or a vector for an arbitrary axis
668
- :type axis: Vector | collections.abc.Sequence[float] | str
688
+ :type axis: Vector | collections.abc.Sequence[float]
669
689
  :param size: The size of the projection matrix to construct [2, 4].
670
690
  :type size: int
671
691
  :return: A new projection matrix.
@@ -677,7 +697,8 @@ class Matrix:
677
697
  cls,
678
698
  angle: float,
679
699
  size: int,
680
- axis: Vector | collections.abc.Sequence[float] | str | None = "",
700
+ axis: Vector | collections.abc.Sequence[float] | None = [],
701
+ /,
681
702
  ) -> typing_extensions.Self:
682
703
  """Create a matrix representing a rotation.
683
704
 
@@ -685,9 +706,9 @@ class Matrix:
685
706
  :type angle: float
686
707
  :param size: The size of the rotation matrix to construct [2, 4].
687
708
  :type size: int
688
- :param axis: a string in ['X', 'Y', 'Z'] or a 3D Vector Object
709
+ :param axis: an axis string or a 3D Vector Object
689
710
  (optional when size is 2).
690
- :type axis: Vector | collections.abc.Sequence[float] | str | None
711
+ :type axis: Vector | collections.abc.Sequence[float] | None
691
712
  :return: A new rotation matrix.
692
713
  :rtype: typing_extensions.Self
693
714
  """
@@ -698,6 +719,7 @@ class Matrix:
698
719
  factor: float,
699
720
  size: int,
700
721
  axis: Vector | collections.abc.Sequence[float] | None = [],
722
+ /,
701
723
  ) -> typing_extensions.Self:
702
724
  """Create a matrix representing a scaling.
703
725
 
@@ -713,13 +735,16 @@ class Matrix:
713
735
 
714
736
  @classmethod
715
737
  def Shear(
716
- cls, plane: str, size: int, factor: collections.abc.Sequence[float] | float
738
+ cls,
739
+ plane,
740
+ size: int,
741
+ factor: collections.abc.Sequence[float] | float,
742
+ /,
717
743
  ) -> typing_extensions.Self:
718
- """Create a matrix to represent an shear transformation.
744
+ """Create a matrix to represent a shear transformation.
719
745
 
720
- :param plane: Can be any of the following: ['X', 'Y', 'XY', 'XZ', 'YZ'],
746
+ :param plane: An axis string,
721
747
  where a single axis is for a 2D matrix only.
722
- :type plane: str
723
748
  :param size: The size of the shear matrix to construct [2, 4].
724
749
  :type size: int
725
750
  :param factor: The factor of shear to apply. For a 2 size matrix use a single float. For a 3 or 4 size matrix pass a pair of floats corresponding with the plane axis.
@@ -730,7 +755,9 @@ class Matrix:
730
755
 
731
756
  @classmethod
732
757
  def Translation(
733
- cls, vector: Vector | collections.abc.Sequence[float]
758
+ cls,
759
+ vector: Vector | collections.abc.Sequence[float],
760
+ /,
734
761
  ) -> typing_extensions.Self:
735
762
  """Create a matrix representing a translation.
736
763
 
@@ -786,6 +813,7 @@ class Matrix:
786
813
  fallback: collections.abc.Sequence[collections.abc.Sequence[float]]
787
814
  | typing_extensions.Self
788
815
  | None = None,
816
+ /,
789
817
  ) -> None:
790
818
  """Set the matrix to its inverse.`Inverse matrix <https://en.wikipedia.org/wiki/Inverse_matrix>`__ on Wikipedia.
791
819
 
@@ -802,11 +830,13 @@ class Matrix:
802
830
  """
803
831
 
804
832
  def inverted(
805
- self, fallback: typing.Any | None = None
833
+ self,
834
+ fallback: typing.Any | None = None,
835
+ /,
806
836
  ) -> typing.Any | typing_extensions.Self:
807
837
  """Return an inverted copy of the matrix.
808
838
 
809
- :param fallback: return this when the inverse can't be calculated
839
+ :param fallback: return this when the inverse cant be calculated
810
840
  (instead of raising a `ValueError`).
811
841
  :type fallback: typing.Any | None
812
842
  :return: The inverted matrix or fallback when given.
@@ -827,6 +857,7 @@ class Matrix:
827
857
  other: collections.abc.Sequence[collections.abc.Sequence[float]]
828
858
  | typing_extensions.Self,
829
859
  factor: float,
860
+ /,
830
861
  ) -> typing_extensions.Self:
831
862
  """Returns the interpolation of two matrices. Uses polar decomposition, see "Matrix Animation and Polar Decomposition", Shoemake and Duff, 1992.
832
863
 
@@ -858,6 +889,7 @@ class Matrix:
858
889
  | collections.abc.Sequence[collections.abc.Sequence[float]]
859
890
  | collections.abc.Sequence[float]
860
891
  | typing_extensions.Self,
892
+ /,
861
893
  ) -> None:
862
894
  """Rotates the matrix by another mathutils value.
863
895
 
@@ -888,15 +920,14 @@ class Matrix:
888
920
 
889
921
  def to_euler(
890
922
  self,
891
- order: str | None = "",
892
- euler_compat: Euler | collections.abc.Sequence[float] | None = [],
923
+ order="XYZ",
924
+ euler_compat: Euler | collections.abc.Sequence[float] | None = None,
925
+ /,
893
926
  ) -> Euler:
894
927
  """Return an Euler representation of the rotation matrix
895
928
  (3x3 or 4x4 matrix only).
896
929
 
897
- :param order: Optional rotation order argument in
898
- ['XYZ', 'XZY', 'YXZ', 'YZX', 'ZXY', 'ZYX'].
899
- :type order: str | None
930
+ :param order: A rotation order string. :type order: Literal[XYZ, XZY, YXZ, YZX, ZXY, ZYX]
900
931
  :param euler_compat: Optional euler argument the new euler will be made
901
932
  compatible with (no axis flipping between them).
902
933
  Useful for converting a series of matrices to animation curves.
@@ -1217,7 +1248,9 @@ class Quaternion:
1217
1248
  """
1218
1249
 
1219
1250
  def cross(
1220
- self, other: collections.abc.Sequence[float] | typing_extensions.Self
1251
+ self,
1252
+ other: collections.abc.Sequence[float] | typing_extensions.Self,
1253
+ /,
1221
1254
  ) -> typing_extensions.Self:
1222
1255
  """Return the cross product of this quaternion and another.
1223
1256
 
@@ -1228,7 +1261,9 @@ class Quaternion:
1228
1261
  """
1229
1262
 
1230
1263
  def dot(
1231
- self, other: collections.abc.Sequence[float] | typing_extensions.Self
1264
+ self,
1265
+ other: collections.abc.Sequence[float] | typing_extensions.Self,
1266
+ /,
1232
1267
  ) -> float:
1233
1268
  """Return the dot product of this quaternion and another.
1234
1269
 
@@ -1258,11 +1293,16 @@ class Quaternion:
1258
1293
  :rtype: typing_extensions.Self
1259
1294
  """
1260
1295
 
1261
- def make_compatible(self, other) -> None:
1296
+ def make_compatible(
1297
+ self,
1298
+ other: collections.abc.Sequence[float] | typing_extensions.Self,
1299
+ /,
1300
+ ) -> None:
1262
1301
  """Make this quaternion compatible with another,
1263
1302
  so interpolating between them works as intended.
1264
1303
 
1265
- :param other:
1304
+ :param other: The other quaternion to make compatible with.
1305
+ :type other: collections.abc.Sequence[float] | typing_extensions.Self
1266
1306
  """
1267
1307
 
1268
1308
  def negate(self) -> None:
@@ -1285,6 +1325,7 @@ class Quaternion:
1285
1325
  | collections.abc.Sequence[collections.abc.Sequence[float]]
1286
1326
  | collections.abc.Sequence[float]
1287
1327
  | typing_extensions.Self,
1328
+ /,
1288
1329
  ) -> None:
1289
1330
  """Rotates the quaternion by another mathutils value.
1290
1331
 
@@ -1293,7 +1334,9 @@ class Quaternion:
1293
1334
  """
1294
1335
 
1295
1336
  def rotation_difference(
1296
- self, other: collections.abc.Sequence[float] | typing_extensions.Self
1337
+ self,
1338
+ other: collections.abc.Sequence[float] | typing_extensions.Self,
1339
+ /,
1297
1340
  ) -> typing_extensions.Self:
1298
1341
  """Returns a quaternion representing the rotational difference.
1299
1342
 
@@ -1307,6 +1350,7 @@ class Quaternion:
1307
1350
  self,
1308
1351
  other: collections.abc.Sequence[float] | typing_extensions.Self,
1309
1352
  factor: float,
1353
+ /,
1310
1354
  ) -> typing_extensions.Self:
1311
1355
  """Returns the interpolation of two quaternions.
1312
1356
 
@@ -1327,14 +1371,13 @@ class Quaternion:
1327
1371
 
1328
1372
  def to_euler(
1329
1373
  self,
1330
- order: str | None = "",
1331
- euler_compat: Euler | collections.abc.Sequence[float] | None = [],
1374
+ order="XYZ",
1375
+ euler_compat: Euler | collections.abc.Sequence[float] | None = None,
1376
+ /,
1332
1377
  ) -> Euler:
1333
1378
  """Return Euler representation of the quaternion.
1334
1379
 
1335
- :param order: Optional rotation order argument in
1336
- ['XYZ', 'XZY', 'YXZ', 'YZX', 'ZXY', 'ZYX'].
1337
- :type order: str | None
1380
+ :param order: Rotation order.
1338
1381
  :param euler_compat: Optional euler argument the new euler will be made
1339
1382
  compatible with (no axis flipping between them).
1340
1383
  Useful for converting a series of matrices to animation curves.
@@ -1357,12 +1400,15 @@ class Quaternion:
1357
1400
  :rtype: Matrix
1358
1401
  """
1359
1402
 
1360
- def to_swing_twist(self, axis: str) -> tuple[Quaternion, float]:
1403
+ def to_swing_twist(
1404
+ self,
1405
+ axis,
1406
+ /,
1407
+ ) -> tuple[Quaternion, float]:
1361
1408
  """Split the rotation into a swing quaternion with the specified
1362
1409
  axis fixed at zero, and the remaining twist rotation angle.
1363
1410
 
1364
- :param axis: Twist axis as a string in ['X', 'Y', 'Z'].
1365
- :type axis: str
1411
+ :param axis: Twist axis as a string.
1366
1412
  :return: Swing, twist angle.
1367
1413
  :rtype: tuple[Quaternion, float]
1368
1414
  """
@@ -3628,7 +3674,12 @@ class Vector:
3628
3674
  """
3629
3675
 
3630
3676
  @classmethod
3631
- def Fill(cls, size: int, fill: float = 0.0) -> None:
3677
+ def Fill(
3678
+ cls,
3679
+ size: int,
3680
+ fill: float = 0.0,
3681
+ /,
3682
+ ) -> None:
3632
3683
  """Create a vector of length size with all values set to fill.
3633
3684
 
3634
3685
  :param size: The length of the vector to be created.
@@ -3638,7 +3689,13 @@ class Vector:
3638
3689
  """
3639
3690
 
3640
3691
  @classmethod
3641
- def Linspace(cls, start: int, stop: int, size: int) -> None:
3692
+ def Linspace(
3693
+ cls,
3694
+ start: int,
3695
+ stop: int,
3696
+ size: int,
3697
+ /,
3698
+ ) -> None:
3642
3699
  """Create a vector of the specified size which is filled with linearly spaced values between start and stop values.
3643
3700
 
3644
3701
  :param start: The start of the range used to fill the vector.
@@ -3650,7 +3707,13 @@ class Vector:
3650
3707
  """
3651
3708
 
3652
3709
  @classmethod
3653
- def Range(cls, start: int, stop: int, step: int = 1) -> None:
3710
+ def Range(
3711
+ cls,
3712
+ start: int,
3713
+ stop: int,
3714
+ step: int = 1,
3715
+ /,
3716
+ ) -> None:
3654
3717
  """Create a filled with a range of values.
3655
3718
 
3656
3719
  :param start: The start of the range used to fill the vector.
@@ -3663,7 +3726,10 @@ class Vector:
3663
3726
 
3664
3727
  @classmethod
3665
3728
  def Repeat(
3666
- cls, vector: collections.abc.Sequence[float] | typing_extensions.Self, size: int
3729
+ cls,
3730
+ vector: collections.abc.Sequence[float] | typing_extensions.Self,
3731
+ size: int,
3732
+ /,
3667
3733
  ) -> None:
3668
3734
  """Create a vector by repeating the values in vector until the required size is reached.
3669
3735
 
@@ -3677,12 +3743,13 @@ class Vector:
3677
3743
  self,
3678
3744
  other: collections.abc.Sequence[float] | typing_extensions.Self,
3679
3745
  fallback: typing.Any | None = None,
3746
+ /,
3680
3747
  ) -> float | typing.Any:
3681
3748
  """Return the angle between two vectors.
3682
3749
 
3683
3750
  :param other: another vector to compare the angle with
3684
3751
  :type other: collections.abc.Sequence[float] | typing_extensions.Self
3685
- :param fallback: return this when the angle can't be calculated (zero length vector),
3752
+ :param fallback: return this when the angle cant be calculated (zero length vector),
3686
3753
  (instead of raising a `ValueError`).
3687
3754
  :type fallback: typing.Any | None
3688
3755
  :return: angle in radians or fallback when given
@@ -3693,12 +3760,13 @@ class Vector:
3693
3760
  self,
3694
3761
  other: collections.abc.Sequence[float] | typing_extensions.Self,
3695
3762
  fallback: typing.Any | None = None,
3763
+ /,
3696
3764
  ) -> float | typing.Any:
3697
3765
  """Return the signed angle between two 2D vectors (clockwise is positive).
3698
3766
 
3699
3767
  :param other: another vector to compare the angle with
3700
3768
  :type other: collections.abc.Sequence[float] | typing_extensions.Self
3701
- :param fallback: return this when the angle can't be calculated (zero length vector),
3769
+ :param fallback: return this when the angle cant be calculated (zero length vector),
3702
3770
  (instead of raising a `ValueError`).
3703
3771
  :type fallback: typing.Any | None
3704
3772
  :return: angle in radians or fallback when given
@@ -3713,7 +3781,9 @@ class Vector:
3713
3781
  """
3714
3782
 
3715
3783
  def cross(
3716
- self, other: collections.abc.Sequence[float] | typing_extensions.Self
3784
+ self,
3785
+ other: collections.abc.Sequence[float] | typing_extensions.Self,
3786
+ /,
3717
3787
  ) -> float | typing_extensions.Self:
3718
3788
  """Return the cross product of this vector and another.
3719
3789
 
@@ -3724,7 +3794,9 @@ class Vector:
3724
3794
  """
3725
3795
 
3726
3796
  def dot(
3727
- self, other: collections.abc.Sequence[float] | typing_extensions.Self
3797
+ self,
3798
+ other: collections.abc.Sequence[float] | typing_extensions.Self,
3799
+ /,
3728
3800
  ) -> float:
3729
3801
  """Return the dot product of this vector and another.
3730
3802
 
@@ -3745,6 +3817,7 @@ class Vector:
3745
3817
  self,
3746
3818
  other: collections.abc.Sequence[float] | typing_extensions.Self,
3747
3819
  factor: float,
3820
+ /,
3748
3821
  ) -> typing_extensions.Self:
3749
3822
  """Returns the interpolation of two vectors.
3750
3823
 
@@ -3777,7 +3850,9 @@ class Vector:
3777
3850
  """
3778
3851
 
3779
3852
  def project(
3780
- self, other: collections.abc.Sequence[float] | typing_extensions.Self
3853
+ self,
3854
+ other: collections.abc.Sequence[float] | typing_extensions.Self,
3855
+ /,
3781
3856
  ) -> typing_extensions.Self:
3782
3857
  """Return the projection of this vector onto the other.
3783
3858
 
@@ -3788,7 +3863,9 @@ class Vector:
3788
3863
  """
3789
3864
 
3790
3865
  def reflect(
3791
- self, mirror: collections.abc.Sequence[float] | typing_extensions.Self
3866
+ self,
3867
+ mirror: collections.abc.Sequence[float] | typing_extensions.Self,
3868
+ /,
3792
3869
  ) -> typing_extensions.Self:
3793
3870
  """Return the reflection vector from the mirror argument.
3794
3871
 
@@ -3798,7 +3875,11 @@ class Vector:
3798
3875
  :rtype: typing_extensions.Self
3799
3876
  """
3800
3877
 
3801
- def resize(self, size=3) -> None:
3878
+ def resize(
3879
+ self,
3880
+ size,
3881
+ /,
3882
+ ) -> None:
3802
3883
  """Resize the vector to have size number of elements.
3803
3884
 
3804
3885
  :param size:
@@ -3813,7 +3894,11 @@ class Vector:
3813
3894
  def resize_4d(self) -> None:
3814
3895
  """Resize the vector to 4D (x, y, z, w)."""
3815
3896
 
3816
- def resized(self, size=3) -> typing_extensions.Self:
3897
+ def resized(
3898
+ self,
3899
+ size,
3900
+ /,
3901
+ ) -> typing_extensions.Self:
3817
3902
  """Return a resized copy of the vector with size number of elements.
3818
3903
 
3819
3904
  :param size:
@@ -3828,6 +3913,7 @@ class Vector:
3828
3913
  | Quaternion
3829
3914
  | collections.abc.Sequence[collections.abc.Sequence[float]]
3830
3915
  | collections.abc.Sequence[float],
3916
+ /,
3831
3917
  ) -> None:
3832
3918
  """Rotate the vector by a rotation value.
3833
3919
 
@@ -3836,7 +3922,9 @@ class Vector:
3836
3922
  """
3837
3923
 
3838
3924
  def rotation_difference(
3839
- self, other: collections.abc.Sequence[float] | typing_extensions.Self
3925
+ self,
3926
+ other: collections.abc.Sequence[float] | typing_extensions.Self,
3927
+ /,
3840
3928
  ) -> Quaternion:
3841
3929
  """Returns a quaternion representing the rotational difference between this
3842
3930
  vector and another.
@@ -3852,6 +3940,7 @@ class Vector:
3852
3940
  other: collections.abc.Sequence[float] | typing_extensions.Self,
3853
3941
  factor: float,
3854
3942
  fallback: typing.Any | None = None,
3943
+ /,
3855
3944
  ) -> typing_extensions.Self:
3856
3945
  """Returns the interpolation of two non-zero vectors (spherical coordinates).
3857
3946
 
@@ -3859,7 +3948,7 @@ class Vector:
3859
3948
  :type other: collections.abc.Sequence[float] | typing_extensions.Self
3860
3949
  :param factor: The interpolation value typically in [0.0, 1.0].
3861
3950
  :type factor: float
3862
- :param fallback: return this when the vector can't be calculated (zero length vector or direct opposites),
3951
+ :param fallback: return this when the vector cant be calculated (zero length vector or direct opposites),
3863
3952
  (instead of raising a `ValueError`).
3864
3953
  :type fallback: typing.Any | None
3865
3954
  :return: The interpolated vector.
@@ -3887,19 +3976,26 @@ class Vector:
3887
3976
  :rtype: typing_extensions.Self
3888
3977
  """
3889
3978
 
3890
- def to_track_quat(self, track: str, up: str) -> Quaternion:
3979
+ def to_track_quat(
3980
+ self,
3981
+ track="Z",
3982
+ up="Y",
3983
+ /,
3984
+ ) -> Quaternion:
3891
3985
  """Return a quaternion rotation from the vector and the track and up axis.
3892
3986
 
3893
- :param track: Track axis in ['X', 'Y', 'Z', '-X', '-Y', '-Z'].
3894
- :type track: str
3895
- :param up: Up axis in ['X', 'Y', 'Z'].
3896
- :type up: str
3987
+ :param track: Track axis string.
3988
+ :param up: Up axis string.
3897
3989
  :return: rotation from the vector and the track and up axis.
3898
3990
  :rtype: Quaternion
3899
3991
  """
3900
3992
 
3901
- def to_tuple(self, precision: int = -1) -> tuple[float, ...]:
3902
- """Return this vector as a tuple with.
3993
+ def to_tuple(
3994
+ self,
3995
+ precision: int = -1,
3996
+ /,
3997
+ ) -> tuple[float, ...]:
3998
+ """Return this vector as a tuple with a given precision.
3903
3999
 
3904
4000
  :param precision: The number to round the value to in [-1, 21].
3905
4001
  :type precision: int
@@ -7,13 +7,14 @@ import typing
7
7
  import collections.abc
8
8
  import typing_extensions
9
9
  import numpy.typing as npt
10
+ import _bpy_types
10
11
  import bmesh.types
11
12
  import bpy.types
12
13
  import mathutils
13
14
 
14
15
  class BVHTree:
15
16
  @classmethod
16
- def FromBMesh(cls, bmesh: bmesh.types.BMesh, epsilon: float = 0.0) -> None:
17
+ def FromBMesh(cls, bmesh: bmesh.types.BMesh, *, epsilon: float = 0.0) -> None:
17
18
  """BVH tree based on `BMesh` data.
18
19
 
19
20
  :param bmesh: BMesh data.
@@ -25,8 +26,9 @@ class BVHTree:
25
26
  @classmethod
26
27
  def FromObject(
27
28
  cls,
28
- object: bpy.types.Object,
29
+ object: _bpy_types.Object,
29
30
  depsgraph: bpy.types.Depsgraph,
31
+ *,
30
32
  deform: bool = True,
31
33
  render=False,
32
34
  cage: bool = False,
@@ -35,7 +37,7 @@ class BVHTree:
35
37
  """BVH tree based on `Object` data.
36
38
 
37
39
  :param object: Object data.
38
- :type object: bpy.types.Object
40
+ :type object: _bpy_types.Object
39
41
  :param depsgraph: Depsgraph to use for evaluating the mesh.
40
42
  :type depsgraph: bpy.types.Depsgraph
41
43
  :param deform: Use mesh with deformations.
@@ -52,6 +54,7 @@ class BVHTree:
52
54
  cls,
53
55
  vertices: collections.abc.Sequence[collections.abc.Sequence[float]],
54
56
  polygons: collections.abc.Sequence[collections.abc.Sequence[int]],
57
+ *,
55
58
  all_triangles: bool = False,
56
59
  epsilon: float = 0.0,
57
60
  ) -> None:
@@ -68,7 +71,10 @@ class BVHTree:
68
71
  """
69
72
 
70
73
  def find_nearest(
71
- self, origin, distance: float = 1.84467e19
74
+ self,
75
+ origin,
76
+ distance: float = 1.84467e19,
77
+ /,
72
78
  ) -> tuple[
73
79
  mathutils.Vector | None, mathutils.Vector | None, int | None, float | None
74
80
  ]:
@@ -83,7 +89,10 @@ class BVHTree:
83
89
  """
84
90
 
85
91
  def find_nearest_range(
86
- self, origin, distance: float = 1.84467e19
92
+ self,
93
+ origin,
94
+ distance: float = 1.84467e19,
95
+ /,
87
96
  ) -> list[tuple[mathutils.Vector, mathutils.Vector, int, float]]:
88
97
  """Find the nearest elements (typically face index) to a point in the distance range.
89
98
 
@@ -94,7 +103,11 @@ class BVHTree:
94
103
  :rtype: list[tuple[mathutils.Vector, mathutils.Vector, int, float]]
95
104
  """
96
105
 
97
- def overlap(self, other_tree: typing_extensions.Self) -> list[tuple[int, int]]:
106
+ def overlap(
107
+ self,
108
+ other_tree: typing_extensions.Self,
109
+ /,
110
+ ) -> list[tuple[int, int]]:
98
111
  """Find overlapping indices between 2 trees.
99
112
 
100
113
  :param other_tree: Other tree to perform overlap test on.
@@ -108,6 +121,7 @@ class BVHTree:
108
121
  origin: collections.abc.Sequence[float] | mathutils.Vector,
109
122
  direction: collections.abc.Sequence[float] | mathutils.Vector,
110
123
  distance: float = sys.float_info.max,
124
+ /,
111
125
  ) -> tuple[
112
126
  mathutils.Vector | None, mathutils.Vector | None, int | None, float | None
113
127
  ]: