fake-bpy-module 20240524__py3-none-any.whl → 20240529__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 (167) hide show
  1. bl_console_utils/autocomplete/complete_calltip/__init__.pyi +3 -3
  2. bl_operators/__init__.pyi +3 -0
  3. bl_operators/connect_to_output/__init__.pyi +325 -0
  4. bl_operators/image_as_planes/__init__.pyi +463 -0
  5. bl_operators/node_editor/__init__.pyi +6 -0
  6. bl_operators/node_editor/node_functions/__init__.pyi +23 -0
  7. bl_operators/presets/__init__.pyi +12 -12
  8. bl_operators/userpref/__init__.pyi +0 -214
  9. bl_operators/wm/__init__.pyi +24 -24
  10. bl_ui/__init__.pyi +12 -12
  11. bl_ui/anim/__init__.pyi +6 -6
  12. bl_ui/generic_ui_list/__init__.pyi +2 -2
  13. bl_ui/node_add_menu/__init__.pyi +6 -6
  14. bl_ui/node_add_menu_compositor/__init__.pyi +108 -108
  15. bl_ui/node_add_menu_geometry/__init__.pyi +288 -288
  16. bl_ui/node_add_menu_shader/__init__.pyi +60 -60
  17. bl_ui/node_add_menu_texture/__init__.pyi +54 -54
  18. bl_ui/properties_collection/__init__.pyi +6 -6
  19. bl_ui/properties_data_armature/__init__.pyi +12 -12
  20. bl_ui/properties_data_camera/__init__.pyi +12 -12
  21. bl_ui/properties_data_curves/__init__.pyi +6 -6
  22. bl_ui/properties_data_gpencil/__init__.pyi +12 -12
  23. bl_ui/properties_data_grease_pencil/__init__.pyi +18 -18
  24. bl_ui/properties_data_mesh/__init__.pyi +24 -24
  25. bl_ui/properties_data_modifier/__init__.pyi +42 -42
  26. bl_ui/properties_data_pointcloud/__init__.pyi +6 -6
  27. bl_ui/properties_freestyle/__init__.pyi +6 -6
  28. bl_ui/properties_grease_pencil_common/__init__.pyi +72 -72
  29. bl_ui/properties_mask_common/__init__.pyi +36 -36
  30. bl_ui/properties_material/__init__.pyi +6 -6
  31. bl_ui/properties_material_gpencil/__init__.pyi +12 -12
  32. bl_ui/properties_object/__init__.pyi +6 -6
  33. bl_ui/properties_output/__init__.pyi +18 -18
  34. bl_ui/properties_paint_common/__init__.pyi +6 -6
  35. bl_ui/properties_particle/__init__.pyi +12 -12
  36. bl_ui/properties_physics_cloth/__init__.pyi +6 -6
  37. bl_ui/properties_physics_fluid/__init__.pyi +6 -6
  38. bl_ui/properties_render/__init__.pyi +7 -7
  39. bl_ui/properties_texture/__init__.pyi +6 -6
  40. bl_ui/properties_view_layer/__init__.pyi +6 -6
  41. bl_ui/space_clip/__init__.pyi +186 -186
  42. bl_ui/space_console/__init__.pyi +30 -30
  43. bl_ui/space_dopesheet/__init__.pyi +84 -84
  44. bl_ui/space_filebrowser/__init__.pyi +78 -78
  45. bl_ui/space_graph/__init__.pyi +96 -96
  46. bl_ui/space_image/__init__.pyi +138 -138
  47. bl_ui/space_info/__init__.pyi +30 -30
  48. bl_ui/space_nla/__init__.pyi +78 -78
  49. bl_ui/space_node/__init__.pyi +72 -72
  50. bl_ui/space_outliner/__init__.pyi +72 -72
  51. bl_ui/space_sequencer/__init__.pyi +204 -204
  52. bl_ui/space_text/__init__.pyi +72 -72
  53. bl_ui/space_time/__init__.pyi +24 -24
  54. bl_ui/space_toolsystem_toolbar/__init__.pyi +4 -0
  55. bl_ui/space_topbar/__init__.pyi +114 -114
  56. bl_ui/space_userpref/__init__.pyi +36 -36
  57. bl_ui/space_view3d/__init__.pyi +1446 -1176
  58. bl_ui/space_view3d_toolbar/__init__.pyi +30 -30
  59. bl_ui/utils/__init__.pyi +6 -6
  60. bmesh/geometry/__init__.pyi +2 -2
  61. bmesh/ops/__init__.pyi +55 -54
  62. bmesh/types/__init__.pyi +43 -33
  63. bmesh/utils/__init__.pyi +2 -2
  64. bpy/app/__init__.pyi +5 -1
  65. bpy/app/handlers/__init__.pyi +37 -37
  66. bpy/app/icons/__init__.pyi +4 -4
  67. bpy/app/timers/__init__.pyi +6 -6
  68. bpy/ops/action/__init__.pyi +21 -0
  69. bpy/ops/anim/__init__.pyi +34 -0
  70. bpy/ops/armature/__init__.pyi +31 -0
  71. bpy/ops/asset/__init__.pyi +5 -0
  72. bpy/ops/bl_pkg/__init__.pyi +32 -21
  73. bpy/ops/boid/__init__.pyi +1 -0
  74. bpy/ops/brush/__init__.pyi +6 -0
  75. bpy/ops/buttons/__init__.pyi +2 -0
  76. bpy/ops/cachefile/__init__.pyi +3 -0
  77. bpy/ops/camera/__init__.pyi +2 -0
  78. bpy/ops/clip/__init__.pyi +49 -0
  79. bpy/ops/cloth/__init__.pyi +1 -0
  80. bpy/ops/collection/__init__.pyi +7 -0
  81. bpy/ops/console/__init__.pyi +11 -0
  82. bpy/ops/constraint/__init__.pyi +15 -0
  83. bpy/ops/curve/__init__.pyi +28 -0
  84. bpy/ops/curves/__init__.pyi +14 -0
  85. bpy/ops/cycles/__init__.pyi +2 -0
  86. bpy/ops/dpaint/__init__.pyi +2 -0
  87. bpy/ops/ed/__init__.pyi +3 -0
  88. bpy/ops/export_anim/__init__.pyi +1 -0
  89. bpy/ops/export_scene/__init__.pyi +20 -3
  90. bpy/ops/file/__init__.pyi +14 -0
  91. bpy/ops/fluid/__init__.pyi +1 -0
  92. bpy/ops/font/__init__.pyi +13 -0
  93. bpy/ops/geometry/__init__.pyi +7 -0
  94. bpy/ops/gizmogroup/__init__.pyi +1 -0
  95. bpy/ops/gpencil/__init__.pyi +106 -0
  96. bpy/ops/graph/__init__.pyi +47 -0
  97. bpy/ops/grease_pencil/__init__.pyi +52 -0
  98. bpy/ops/image/__init__.pyi +308 -0
  99. bpy/ops/import_anim/__init__.pyi +1 -0
  100. bpy/ops/import_curve/__init__.pyi +1 -0
  101. bpy/ops/import_scene/__init__.pyi +2 -0
  102. bpy/ops/info/__init__.pyi +3 -0
  103. bpy/ops/lattice/__init__.pyi +5 -0
  104. bpy/ops/marker/__init__.pyi +9 -0
  105. bpy/ops/mask/__init__.pyi +22 -0
  106. bpy/ops/mball/__init__.pyi +7 -0
  107. bpy/ops/mesh/__init__.pyi +134 -0
  108. bpy/ops/nla/__init__.pyi +20 -0
  109. bpy/ops/node/__init__.pyi +65 -0
  110. bpy/ops/object/__init__.pyi +174 -0
  111. bpy/ops/outliner/__init__.pyi +25 -0
  112. bpy/ops/paint/__init__.pyi +105 -0
  113. bpy/ops/paintcurve/__init__.pyi +4 -0
  114. bpy/ops/palette/__init__.pyi +4 -0
  115. bpy/ops/particle/__init__.pyi +17 -0
  116. bpy/ops/pose/__init__.pyi +24 -0
  117. bpy/ops/poselib/__init__.pyi +4 -0
  118. bpy/ops/preferences/__init__.pyi +28 -16
  119. bpy/ops/ptcache/__init__.pyi +2 -0
  120. bpy/ops/render/__init__.pyi +9 -0
  121. bpy/ops/rigidbody/__init__.pyi +7 -0
  122. bpy/ops/scene/__init__.pyi +16 -0
  123. bpy/ops/screen/__init__.pyi +21 -0
  124. bpy/ops/script/__init__.pyi +2 -0
  125. bpy/ops/sculpt/__init__.pyi +151 -0
  126. bpy/ops/sculpt_curves/__init__.pyi +3 -0
  127. bpy/ops/sequencer/__init__.pyi +57 -0
  128. bpy/ops/sound/__init__.pyi +4 -0
  129. bpy/ops/spreadsheet/__init__.pyi +2 -0
  130. bpy/ops/surface/__init__.pyi +6 -0
  131. bpy/ops/text/__init__.pyi +18 -0
  132. bpy/ops/text_editor/__init__.pyi +1 -0
  133. bpy/ops/texture/__init__.pyi +1 -0
  134. bpy/ops/transform/__init__.pyi +25 -0
  135. bpy/ops/ui/__init__.pyi +13 -0
  136. bpy/ops/uilist/__init__.pyi +3 -0
  137. bpy/ops/uv/__init__.pyi +40 -0
  138. bpy/ops/view2d/__init__.pyi +11 -0
  139. bpy/ops/view3d/__init__.pyi +30 -0
  140. bpy/ops/wm/__init__.pyi +114 -0
  141. bpy/ops/workspace/__init__.pyi +1 -0
  142. bpy/path/__init__.pyi +6 -6
  143. bpy/props/__init__.pyi +27 -15
  144. bpy/types/__init__.pyi +662 -388
  145. bpy/utils/__init__.pyi +12 -10
  146. bpy_extras/anim_utils/__init__.pyi +7 -7
  147. bpy_extras/io_utils/__init__.pyi +4 -4
  148. bpy_extras/mesh_utils/__init__.pyi +4 -4
  149. bpy_extras/object_utils/__init__.pyi +8 -8
  150. bpy_extras/view3d_utils/__init__.pyi +2 -0
  151. bpy_types/__init__.pyi +12 -12
  152. {fake_bpy_module-20240524.dist-info → fake_bpy_module-20240529.dist-info}/METADATA +1 -1
  153. {fake_bpy_module-20240524.dist-info → fake_bpy_module-20240529.dist-info}/RECORD +167 -163
  154. freestyle/shaders/__init__.pyi +2 -2
  155. freestyle/types/__init__.pyi +64 -56
  156. gpu/matrix/__init__.pyi +6 -6
  157. gpu/types/__init__.pyi +14 -10
  158. gpu_extras/batch/__init__.pyi +1 -1
  159. gpu_extras/presets/__init__.pyi +1 -1
  160. imbuf/__init__.pyi +2 -2
  161. mathutils/__init__.pyi +176 -137
  162. mathutils/bvhtree/__init__.pyi +4 -4
  163. mathutils/geometry/__init__.pyi +139 -139
  164. mathutils/kdtree/__init__.pyi +14 -10
  165. mathutils/noise/__init__.pyi +26 -26
  166. {fake_bpy_module-20240524.dist-info → fake_bpy_module-20240529.dist-info}/WHEEL +0 -0
  167. {fake_bpy_module-20240524.dist-info → fake_bpy_module-20240529.dist-info}/top_level.txt +0 -0
@@ -665,17 +665,17 @@ is a border, it has no Face on its right and therefore no material.
665
665
  :type: Material
666
666
  """
667
667
 
668
- normal_left: typing.Sequence[float] | mathutils.Vector
668
+ normal_left: collections.abc.Sequence[float] | mathutils.Vector
669
669
  """ The normal to the face lying on the left of the FEdge.
670
670
 
671
- :type: typing.Sequence[float] | mathutils.Vector
671
+ :type: collections.abc.Sequence[float] | mathutils.Vector
672
672
  """
673
673
 
674
- normal_right: typing.Sequence[float] | mathutils.Vector
674
+ normal_right: collections.abc.Sequence[float] | mathutils.Vector
675
675
  """ The normal to the face lying on the right of the FEdge. If this FEdge
676
676
  is a border, it has no Face on its right and therefore no normal.
677
677
 
678
- :type: typing.Sequence[float] | mathutils.Vector
678
+ :type: collections.abc.Sequence[float] | mathutils.Vector
679
679
  """
680
680
 
681
681
  def __init__(self):
@@ -729,10 +729,10 @@ class FEdgeSmooth:
729
729
  :type: int
730
730
  """
731
731
 
732
- normal: typing.Sequence[float] | mathutils.Vector
732
+ normal: collections.abc.Sequence[float] | mathutils.Vector
733
733
  """ The normal of the face that this FEdge is running across.
734
734
 
735
- :type: typing.Sequence[float] | mathutils.Vector
735
+ :type: collections.abc.Sequence[float] | mathutils.Vector
736
736
  """
737
737
 
738
738
  def __init__(self):
@@ -823,16 +823,16 @@ class Interface0D:
823
823
  :type: Nature
824
824
  """
825
825
 
826
- point_2d: typing.Sequence[float] | mathutils.Vector
826
+ point_2d: collections.abc.Sequence[float] | mathutils.Vector
827
827
  """ The 2D point of this 0D element.
828
828
 
829
- :type: typing.Sequence[float] | mathutils.Vector
829
+ :type: collections.abc.Sequence[float] | mathutils.Vector
830
830
  """
831
831
 
832
- point_3d: typing.Sequence[float] | mathutils.Vector
832
+ point_3d: collections.abc.Sequence[float] | mathutils.Vector
833
833
  """ The 3D point of this 0D element.
834
834
 
835
- :type: typing.Sequence[float] | mathutils.Vector
835
+ :type: collections.abc.Sequence[float] | mathutils.Vector
836
836
  """
837
837
 
838
838
  projected_x: float
@@ -1038,28 +1038,28 @@ class Iterator:
1038
1038
  class Material:
1039
1039
  """Class defining a material."""
1040
1040
 
1041
- ambient: typing.Sequence[float] | mathutils.Color
1041
+ ambient: collections.abc.Sequence[float] | mathutils.Color
1042
1042
  """ RGBA components of the ambient color of the material.
1043
1043
 
1044
- :type: typing.Sequence[float] | mathutils.Color
1044
+ :type: collections.abc.Sequence[float] | mathutils.Color
1045
1045
  """
1046
1046
 
1047
- diffuse: typing.Sequence[float] | mathutils.Vector
1047
+ diffuse: collections.abc.Sequence[float] | mathutils.Vector
1048
1048
  """ RGBA components of the diffuse color of the material.
1049
1049
 
1050
- :type: typing.Sequence[float] | mathutils.Vector
1050
+ :type: collections.abc.Sequence[float] | mathutils.Vector
1051
1051
  """
1052
1052
 
1053
- emission: typing.Sequence[float] | mathutils.Color
1053
+ emission: collections.abc.Sequence[float] | mathutils.Color
1054
1054
  """ RGBA components of the emissive color of the material.
1055
1055
 
1056
- :type: typing.Sequence[float] | mathutils.Color
1056
+ :type: collections.abc.Sequence[float] | mathutils.Color
1057
1057
  """
1058
1058
 
1059
- line: typing.Sequence[float] | mathutils.Vector
1059
+ line: collections.abc.Sequence[float] | mathutils.Vector
1060
1060
  """ RGBA components of the line color of the material.
1061
1061
 
1062
- :type: typing.Sequence[float] | mathutils.Vector
1062
+ :type: collections.abc.Sequence[float] | mathutils.Vector
1063
1063
  """
1064
1064
 
1065
1065
  priority: int
@@ -1074,10 +1074,10 @@ class Material:
1074
1074
  :type: float
1075
1075
  """
1076
1076
 
1077
- specular: typing.Sequence[float] | mathutils.Vector
1077
+ specular: collections.abc.Sequence[float] | mathutils.Vector
1078
1078
  """ RGBA components of the specular color of the material.
1079
1079
 
1080
- :type: typing.Sequence[float] | mathutils.Vector
1080
+ :type: collections.abc.Sequence[float] | mathutils.Vector
1081
1081
  """
1082
1082
 
1083
1083
  def __init__(self):
@@ -1098,11 +1098,11 @@ class Material:
1098
1098
 
1099
1099
  def __init__(
1100
1100
  self,
1101
- line: typing.Sequence[float] | mathutils.Vector | list,
1102
- diffuse: typing.Sequence[float] | mathutils.Vector | list,
1103
- ambient: typing.Sequence[float] | mathutils.Vector | list,
1104
- specular: typing.Sequence[float] | mathutils.Vector | list,
1105
- emission: typing.Sequence[float] | mathutils.Vector | list,
1101
+ line: collections.abc.Sequence[float] | mathutils.Vector | list,
1102
+ diffuse: collections.abc.Sequence[float] | mathutils.Vector | list,
1103
+ ambient: collections.abc.Sequence[float] | mathutils.Vector | list,
1104
+ specular: collections.abc.Sequence[float] | mathutils.Vector | list,
1105
+ emission: collections.abc.Sequence[float] | mathutils.Vector | list,
1106
1106
  shininess: float,
1107
1107
  priority: int,
1108
1108
  ):
@@ -1110,15 +1110,15 @@ class Material:
1110
1110
  copy constructor, or an overloaded constructor
1111
1111
 
1112
1112
  :param line: The line color.
1113
- :type line: typing.Sequence[float] | mathutils.Vector | list
1113
+ :type line: collections.abc.Sequence[float] | mathutils.Vector | list
1114
1114
  :param diffuse: The diffuse color.
1115
- :type diffuse: typing.Sequence[float] | mathutils.Vector | list
1115
+ :type diffuse: collections.abc.Sequence[float] | mathutils.Vector | list
1116
1116
  :param ambient: The ambient color.
1117
- :type ambient: typing.Sequence[float] | mathutils.Vector | list
1117
+ :type ambient: collections.abc.Sequence[float] | mathutils.Vector | list
1118
1118
  :param specular: The specular color.
1119
- :type specular: typing.Sequence[float] | mathutils.Vector | list
1119
+ :type specular: collections.abc.Sequence[float] | mathutils.Vector | list
1120
1120
  :param emission: The emissive color.
1121
- :type emission: typing.Sequence[float] | mathutils.Vector | list
1121
+ :type emission: collections.abc.Sequence[float] | mathutils.Vector | list
1122
1122
  :param shininess: The shininess coefficient.
1123
1123
  :type shininess: float
1124
1124
  :param priority: The line color priority.
@@ -1162,24 +1162,24 @@ class Noise:
1162
1162
  ...
1163
1163
 
1164
1164
  def smoothNoise2(
1165
- self, v: typing.Sequence[float] | mathutils.Vector | list
1165
+ self, v: collections.abc.Sequence[float] | mathutils.Vector | list
1166
1166
  ) -> float:
1167
1167
  """Returns a smooth noise value for a 2D element.
1168
1168
 
1169
1169
  :param v: Two-dimensional sample point.
1170
- :type v: typing.Sequence[float] | mathutils.Vector | list
1170
+ :type v: collections.abc.Sequence[float] | mathutils.Vector | list
1171
1171
  :return: A smooth noise value.
1172
1172
  :rtype: float
1173
1173
  """
1174
1174
  ...
1175
1175
 
1176
1176
  def smoothNoise3(
1177
- self, v: typing.Sequence[float] | mathutils.Vector | list
1177
+ self, v: collections.abc.Sequence[float] | mathutils.Vector | list
1178
1178
  ) -> float:
1179
1179
  """Returns a smooth noise value for a 3D element.
1180
1180
 
1181
1181
  :param v: Three-dimensional sample point.
1182
- :type v: typing.Sequence[float] | mathutils.Vector | list
1182
+ :type v: collections.abc.Sequence[float] | mathutils.Vector | list
1183
1183
  :return: A smooth noise value.
1184
1184
  :rtype: float
1185
1185
  """
@@ -1203,7 +1203,7 @@ class Noise:
1203
1203
 
1204
1204
  def turbulence2(
1205
1205
  self,
1206
- v: typing.Sequence[float] | mathutils.Vector | list,
1206
+ v: collections.abc.Sequence[float] | mathutils.Vector | list,
1207
1207
  freq: float,
1208
1208
  amp: float,
1209
1209
  oct: int = 4,
@@ -1211,7 +1211,7 @@ class Noise:
1211
1211
  """Returns a noise value for a 2D element.
1212
1212
 
1213
1213
  :param v: Two-dimensional sample point.
1214
- :type v: typing.Sequence[float] | mathutils.Vector | list
1214
+ :type v: collections.abc.Sequence[float] | mathutils.Vector | list
1215
1215
  :param freq: Noise frequency.
1216
1216
  :type freq: float
1217
1217
  :param amp: Amplitude.
@@ -1225,7 +1225,7 @@ class Noise:
1225
1225
 
1226
1226
  def turbulence3(
1227
1227
  self,
1228
- v: typing.Sequence[float] | mathutils.Vector | list,
1228
+ v: collections.abc.Sequence[float] | mathutils.Vector | list,
1229
1229
  freq: float,
1230
1230
  amp: float,
1231
1231
  oct: int = 4,
@@ -1233,7 +1233,7 @@ class Noise:
1233
1233
  """Returns a noise value for a 3D element.
1234
1234
 
1235
1235
  :param v: Three-dimensional sample point.
1236
- :type v: typing.Sequence[float] | mathutils.Vector | list
1236
+ :type v: collections.abc.Sequence[float] | mathutils.Vector | list
1237
1237
  :param freq: Noise frequency.
1238
1238
  :type freq: float
1239
1239
  :param amp: Amplitude.
@@ -1677,16 +1677,16 @@ number of normals."""
1677
1677
  :type: int
1678
1678
  """
1679
1679
 
1680
- point_2d: typing.Sequence[float] | mathutils.Vector
1680
+ point_2d: collections.abc.Sequence[float] | mathutils.Vector
1681
1681
  """ The projected 3D coordinates of the SVertex.
1682
1682
 
1683
- :type: typing.Sequence[float] | mathutils.Vector
1683
+ :type: collections.abc.Sequence[float] | mathutils.Vector
1684
1684
  """
1685
1685
 
1686
- point_3d: typing.Sequence[float] | mathutils.Vector
1686
+ point_3d: collections.abc.Sequence[float] | mathutils.Vector
1687
1687
  """ The 3D coordinates of the SVertex.
1688
1688
 
1689
- :type: typing.Sequence[float] | mathutils.Vector
1689
+ :type: collections.abc.Sequence[float] | mathutils.Vector
1690
1690
  """
1691
1691
 
1692
1692
  viewvertex: ViewVertex
@@ -1712,12 +1712,14 @@ ViewVertex, and None otherwise.
1712
1712
  """
1713
1713
  ...
1714
1714
 
1715
- def __init__(self, point_3d: typing.Sequence[float] | mathutils.Vector, id: Id):
1715
+ def __init__(
1716
+ self, point_3d: collections.abc.Sequence[float] | mathutils.Vector, id: Id
1717
+ ):
1716
1718
  """Builds a `SVertex` using the default constructor,
1717
1719
  copy constructor or the overloaded constructor which builds a `SVertex` from 3D coordinates and an Id.
1718
1720
 
1719
1721
  :param point_3d: A three-dimensional vector.
1720
- :type point_3d: typing.Sequence[float] | mathutils.Vector
1722
+ :type point_3d: collections.abc.Sequence[float] | mathutils.Vector
1721
1723
  :param id: An Id object.
1722
1724
  :type id: Id
1723
1725
  """
@@ -1731,12 +1733,14 @@ ViewVertex, and None otherwise.
1731
1733
  """
1732
1734
  ...
1733
1735
 
1734
- def add_normal(self, normal: typing.Sequence[float] | mathutils.Vector | list):
1736
+ def add_normal(
1737
+ self, normal: collections.abc.Sequence[float] | mathutils.Vector | list
1738
+ ):
1735
1739
  """Adds a normal to the SVertex's set of normals. If the same normal
1736
1740
  is already in the set, nothing changes.
1737
1741
 
1738
1742
  :param normal: A three-dimensional vector.
1739
- :type normal: typing.Sequence[float] | mathutils.Vector | list
1743
+ :type normal: collections.abc.Sequence[float] | mathutils.Vector | list
1740
1744
  """
1741
1745
  ...
1742
1746
 
@@ -1956,18 +1960,18 @@ class StrokeAttribute:
1956
1960
  :type: float
1957
1961
  """
1958
1962
 
1959
- color: typing.Sequence[float] | mathutils.Color
1963
+ color: collections.abc.Sequence[float] | mathutils.Color
1960
1964
  """ RGB components of the stroke color.
1961
1965
 
1962
- :type: typing.Sequence[float] | mathutils.Color
1966
+ :type: collections.abc.Sequence[float] | mathutils.Color
1963
1967
  """
1964
1968
 
1965
- thickness: typing.Sequence[float] | mathutils.Vector
1969
+ thickness: collections.abc.Sequence[float] | mathutils.Vector
1966
1970
  """ Right and left components of the stroke thickness.
1967
1971
  The right (left) component is the thickness on the right (left) of the vertex
1968
1972
  when following the stroke.
1969
1973
 
1970
- :type: typing.Sequence[float] | mathutils.Vector
1974
+ :type: collections.abc.Sequence[float] | mathutils.Vector
1971
1975
  """
1972
1976
 
1973
1977
  visible: bool
@@ -2113,7 +2117,9 @@ when following the stroke.
2113
2117
  ...
2114
2118
 
2115
2119
  def set_attribute_vec2(
2116
- self, name: str, value: typing.Sequence[float] | mathutils.Vector | list
2120
+ self,
2121
+ name: str,
2122
+ value: collections.abc.Sequence[float] | mathutils.Vector | list,
2117
2123
  ):
2118
2124
  """Adds a user-defined attribute of two-dimensional vector type. If
2119
2125
  there is no attribute of the given name, it is added. Otherwise,
@@ -2122,12 +2128,14 @@ when following the stroke.
2122
2128
  :param name: The name of the attribute.
2123
2129
  :type name: str
2124
2130
  :param value: The attribute value.
2125
- :type value: typing.Sequence[float] | mathutils.Vector | list
2131
+ :type value: collections.abc.Sequence[float] | mathutils.Vector | list
2126
2132
  """
2127
2133
  ...
2128
2134
 
2129
2135
  def set_attribute_vec3(
2130
- self, name: str, value: typing.Sequence[float] | mathutils.Vector | list
2136
+ self,
2137
+ name: str,
2138
+ value: collections.abc.Sequence[float] | mathutils.Vector | list,
2131
2139
  ):
2132
2140
  """Adds a user-defined attribute of three-dimensional vector type.
2133
2141
  If there is no attribute of the given name, it is added.
@@ -2136,7 +2144,7 @@ when following the stroke.
2136
2144
  :param name: The name of the attribute.
2137
2145
  :type name: str
2138
2146
  :param value: The attribute value.
2139
- :type value: typing.Sequence[float] | mathutils.Vector | list
2147
+ :type value: collections.abc.Sequence[float] | mathutils.Vector | list
2140
2148
  """
2141
2149
  ...
2142
2150
 
@@ -2183,10 +2191,10 @@ class StrokeVertex:
2183
2191
  :type: float
2184
2192
  """
2185
2193
 
2186
- point: typing.Sequence[float] | mathutils.Vector
2194
+ point: collections.abc.Sequence[float] | mathutils.Vector
2187
2195
  """ 2D point coordinates.
2188
2196
 
2189
- :type: typing.Sequence[float] | mathutils.Vector
2197
+ :type: collections.abc.Sequence[float] | mathutils.Vector
2190
2198
  """
2191
2199
 
2192
2200
  stroke_length: float
gpu/matrix/__init__.pyi CHANGED
@@ -42,29 +42,29 @@ def load_identity():
42
42
 
43
43
  ...
44
44
 
45
- def load_matrix(matrix: typing.Sequence[float] | mathutils.Matrix):
45
+ def load_matrix(matrix: collections.abc.Sequence[float] | mathutils.Matrix):
46
46
  """Load a matrix into the stack.
47
47
 
48
48
  :param matrix: A 4x4 matrix.
49
- :type matrix: typing.Sequence[float] | mathutils.Matrix
49
+ :type matrix: collections.abc.Sequence[float] | mathutils.Matrix
50
50
  """
51
51
 
52
52
  ...
53
53
 
54
- def load_projection_matrix(matrix: typing.Sequence[float] | mathutils.Matrix):
54
+ def load_projection_matrix(matrix: collections.abc.Sequence[float] | mathutils.Matrix):
55
55
  """Load a projection matrix into the stack.
56
56
 
57
57
  :param matrix: A 4x4 matrix.
58
- :type matrix: typing.Sequence[float] | mathutils.Matrix
58
+ :type matrix: collections.abc.Sequence[float] | mathutils.Matrix
59
59
  """
60
60
 
61
61
  ...
62
62
 
63
- def multiply_matrix(matrix: typing.Sequence[float] | mathutils.Matrix):
63
+ def multiply_matrix(matrix: collections.abc.Sequence[float] | mathutils.Matrix):
64
64
  """Multiply the current stack matrix.
65
65
 
66
66
  :param matrix: A 4x4 matrix.
67
- :type matrix: typing.Sequence[float] | mathutils.Matrix
67
+ :type matrix: collections.abc.Sequence[float] | mathutils.Matrix
68
68
  """
69
69
 
70
70
  ...
gpu/types/__init__.pyi CHANGED
@@ -25,7 +25,7 @@ class GPUBatch:
25
25
  ...
26
26
 
27
27
  def draw_instanced(
28
- self, program: GPUShader, instance_start: int = 0, instance_count: int = 0
28
+ self, program: GPUShader, *, instance_start: int = 0, instance_count: int = 0
29
29
  ):
30
30
  """Draw multiple instances of the drawing program with the parameters assigned
31
31
  to the batch. In the vertex shader, gl_InstanceID will contain the instance
@@ -42,7 +42,9 @@ class GPUBatch:
42
42
  """
43
43
  ...
44
44
 
45
- def draw_range(self, program: GPUShader, elem_start: int = 0, elem_count: int = 0):
45
+ def draw_range(
46
+ self, program: GPUShader, *, elem_start: int = 0, elem_count: int = 0
47
+ ):
46
48
  """Run the drawing program with the parameters assigned to the batch. Only draw
47
49
  the elem_count elements of the index buffer starting at elem_start
48
50
 
@@ -116,7 +118,7 @@ class GPUFrameBuffer:
116
118
  channels: int,
117
119
  slot: int,
118
120
  format: str,
119
- data: Buffer = None,
121
+ data: Buffer | None = None,
120
122
  ) -> Buffer:
121
123
  """Read a block of pixels from the frame buffer.
122
124
 
@@ -133,13 +135,15 @@ class GPUFrameBuffer:
133
135
  Possible values are FLOAT, INT, UINT, UBYTE, UINT_24_8 and 10_11_11_REV.
134
136
  :type format: str
135
137
  :param data: Optional Buffer object to fill with the pixels values.
136
- :type data: Buffer
138
+ :type data: Buffer | None
137
139
  :return: The Buffer with the read pixels.
138
140
  :rtype: Buffer
139
141
  """
140
142
  ...
141
143
 
142
- def read_depth(self, x: int, y, xsize: int, ysize, data: Buffer = None) -> Buffer:
144
+ def read_depth(
145
+ self, x: int, y, xsize: int, ysize, data: Buffer | None = None
146
+ ) -> Buffer:
143
147
  """Read a pixel depth block from the frame buffer.
144
148
 
145
149
  :param x: Lower left corner of a rectangular block of pixels.
@@ -149,7 +153,7 @@ class GPUFrameBuffer:
149
153
  :type xsize: int
150
154
  :param ysize:
151
155
  :param data: Optional Buffer object to fill with the pixels values.
152
- :type data: Buffer
156
+ :type data: Buffer | None
153
157
  :return: The Buffer with the read pixels.
154
158
  :rtype: Buffer
155
159
  """
@@ -214,8 +218,8 @@ class GPUOffScreen:
214
218
  view_layer: bpy.types.ViewLayer,
215
219
  view3d: bpy.types.SpaceView3D,
216
220
  region: bpy.types.Region,
217
- view_matrix: typing.Sequence[float] | mathutils.Matrix,
218
- projection_matrix: typing.Sequence[float] | mathutils.Matrix,
221
+ view_matrix: collections.abc.Sequence[float] | mathutils.Matrix,
222
+ projection_matrix: collections.abc.Sequence[float] | mathutils.Matrix,
219
223
  do_color_management: bool = False,
220
224
  draw_background: bool = True,
221
225
  ):
@@ -230,9 +234,9 @@ class GPUOffScreen:
230
234
  :param region: Region of the 3D View (required as temporary draw target).
231
235
  :type region: bpy.types.Region
232
236
  :param view_matrix: View Matrix (e.g. camera.matrix_world.inverted()).
233
- :type view_matrix: typing.Sequence[float] | mathutils.Matrix
237
+ :type view_matrix: collections.abc.Sequence[float] | mathutils.Matrix
234
238
  :param projection_matrix: Projection Matrix (e.g. camera.calc_matrix_camera(...)).
235
- :type projection_matrix: typing.Sequence[float] | mathutils.Matrix
239
+ :type projection_matrix: collections.abc.Sequence[float] | mathutils.Matrix
236
240
  :param do_color_management: Color manage the output.
237
241
  :type do_color_management: bool
238
242
  :param draw_background: Draw background.
@@ -6,7 +6,7 @@ GenericType1 = typing.TypeVar("GenericType1")
6
6
  GenericType2 = typing.TypeVar("GenericType2")
7
7
 
8
8
  def batch_for_shader(
9
- shader: gpu.types.GPUShader, type: str, content: dict, indices=None
9
+ shader: gpu.types.GPUShader, type: str, content: dict, *, indices=None
10
10
  ) -> gpu.types.GPUBatch:
11
11
  """Return a batch already configured and compatible with the shader.
12
12
 
@@ -7,7 +7,7 @@ GenericType1 = typing.TypeVar("GenericType1")
7
7
  GenericType2 = typing.TypeVar("GenericType2")
8
8
 
9
9
  def draw_circle_2d(
10
- position: mathutils.Vector, color, radius: float, segments: int | None = None
10
+ position: mathutils.Vector, color, radius: float, *, segments: int | None = None
11
11
  ):
12
12
  """Draw a circle.
13
13
 
imbuf/__init__.pyi CHANGED
@@ -41,13 +41,13 @@ def new(size) -> imbuf.types.ImBuf:
41
41
 
42
42
  ...
43
43
 
44
- def write(image: imbuf.types.ImBuf, filepath: str | bytes = None):
44
+ def write(image: imbuf.types.ImBuf, filepath: str | bytes | None = None):
45
45
  """Write an image.
46
46
 
47
47
  :param image: the image to write.
48
48
  :type image: imbuf.types.ImBuf
49
49
  :param filepath: Optional filepath of the image (fallback to the images file path).
50
- :type filepath: str | bytes
50
+ :type filepath: str | bytes | None
51
51
  """
52
52
 
53
53
  ...