fake-bpy-module 20241207__py3-none-any.whl → 20241209__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 (115) hide show
  1. addon_utils/__init__.pyi +2 -1
  2. bl_console_utils/autocomplete/complete_calltip/__init__.pyi +5 -2
  3. bl_console_utils/autocomplete/complete_import/__init__.pyi +6 -3
  4. bl_console_utils/autocomplete/complete_namespace/__init__.pyi +2 -1
  5. bl_console_utils/autocomplete/intellisense/__init__.pyi +8 -2
  6. blf/__init__.pyi +2 -1
  7. bmesh/ops/__init__.pyi +110 -53
  8. bmesh/types/__init__.pyi +18 -10
  9. bmesh/utils/__init__.pyi +14 -4
  10. bpy/app/icons/__init__.pyi +4 -1
  11. bpy/app/translations/__init__.pyi +4 -1
  12. bpy/msgbus/__init__.pyi +8 -5
  13. bpy/ops/action/__init__.pyi +38 -138
  14. bpy/ops/anim/__init__.pyi +61 -179
  15. bpy/ops/armature/__init__.pyi +48 -147
  16. bpy/ops/asset/__init__.pyi +16 -71
  17. bpy/ops/boid/__init__.pyi +8 -41
  18. bpy/ops/brush/__init__.pyi +13 -39
  19. bpy/ops/buttons/__init__.pyi +6 -29
  20. bpy/ops/cachefile/__init__.pyi +5 -19
  21. bpy/ops/camera/__init__.pyi +2 -5
  22. bpy/ops/clip/__init__.pyi +92 -290
  23. bpy/ops/cloth/__init__.pyi +1 -3
  24. bpy/ops/collection/__init__.pyi +9 -25
  25. bpy/ops/console/__init__.pyi +21 -79
  26. bpy/ops/constraint/__init__.pyi +18 -45
  27. bpy/ops/curve/__init__.pyi +51 -180
  28. bpy/ops/curves/__init__.pyi +28 -100
  29. bpy/ops/cycles/__init__.pyi +3 -9
  30. bpy/ops/dpaint/__init__.pyi +5 -19
  31. bpy/ops/ed/__init__.pyi +12 -53
  32. bpy/ops/export_anim/__init__.pyi +1 -3
  33. bpy/ops/export_scene/__init__.pyi +2 -5
  34. bpy/ops/extensions/__init__.pyi +34 -110
  35. bpy/ops/file/__init__.pyi +40 -167
  36. bpy/ops/fluid/__init__.pyi +14 -77
  37. bpy/ops/font/__init__.pyi +23 -85
  38. bpy/ops/geometry/__init__.pyi +10 -27
  39. bpy/ops/gizmogroup/__init__.pyi +2 -9
  40. bpy/ops/gpencil/__init__.pyi +8 -32
  41. bpy/ops/graph/__init__.pyi +65 -184
  42. bpy/ops/grease_pencil/__init__.pyi +108 -290
  43. bpy/ops/image/__init__.pyi +49 -154
  44. bpy/ops/import_anim/__init__.pyi +1 -3
  45. bpy/ops/import_curve/__init__.pyi +1 -3
  46. bpy/ops/import_scene/__init__.pyi +2 -4
  47. bpy/ops/info/__init__.pyi +7 -29
  48. bpy/ops/lattice/__init__.pyi +8 -29
  49. bpy/ops/marker/__init__.pyi +11 -31
  50. bpy/ops/mask/__init__.pyi +39 -132
  51. bpy/ops/material/__init__.pyi +3 -19
  52. bpy/ops/mball/__init__.pyi +8 -19
  53. bpy/ops/mesh/__init__.pyi +164 -401
  54. bpy/ops/nla/__init__.pyi +39 -147
  55. bpy/ops/node/__init__.pyi +115 -390
  56. bpy/ops/object/__init__.pyi +237 -630
  57. bpy/ops/outliner/__init__.pyi +71 -263
  58. bpy/ops/paint/__init__.pyi +54 -140
  59. bpy/ops/paintcurve/__init__.pyi +8 -33
  60. bpy/ops/palette/__init__.pyi +7 -27
  61. bpy/ops/particle/__init__.pyi +36 -134
  62. bpy/ops/pose/__init__.pyi +51 -169
  63. bpy/ops/poselib/__init__.pyi +9 -33
  64. bpy/ops/preferences/__init__.pyi +35 -94
  65. bpy/ops/ptcache/__init__.pyi +7 -33
  66. bpy/ops/render/__init__.pyi +13 -37
  67. bpy/ops/rigidbody/__init__.pyi +13 -45
  68. bpy/ops/scene/__init__.pyi +37 -121
  69. bpy/ops/screen/__init__.pyi +39 -137
  70. bpy/ops/script/__init__.pyi +3 -11
  71. bpy/ops/sculpt/__init__.pyi +37 -94
  72. bpy/ops/sculpt_curves/__init__.pyi +4 -10
  73. bpy/ops/sequencer/__init__.pyi +89 -284
  74. bpy/ops/sound/__init__.pyi +7 -23
  75. bpy/ops/spreadsheet/__init__.pyi +4 -15
  76. bpy/ops/surface/__init__.pyi +6 -13
  77. bpy/ops/text/__init__.pyi +43 -175
  78. bpy/ops/text_editor/__init__.pyi +1 -3
  79. bpy/ops/texture/__init__.pyi +4 -21
  80. bpy/ops/transform/__init__.pyi +27 -61
  81. bpy/ops/ui/__init__.pyi +34 -117
  82. bpy/ops/uilist/__init__.pyi +3 -7
  83. bpy/ops/uv/__init__.pyi +49 -134
  84. bpy/ops/view2d/__init__.pyi +14 -39
  85. bpy/ops/view3d/__init__.pyi +67 -232
  86. bpy/ops/wm/__init__.pyi +114 -298
  87. bpy/ops/workspace/__init__.pyi +7 -33
  88. bpy/ops/world/__init__.pyi +2 -11
  89. bpy/path/__init__.pyi +4 -2
  90. bpy/types/__init__.pyi +68 -32
  91. bpy/utils/__init__.pyi +18 -9
  92. bpy_extras/bmesh_utils/__init__.pyi +2 -1
  93. bpy_extras/io_utils/__init__.pyi +7 -2
  94. bpy_extras/mesh_utils/__init__.pyi +19 -7
  95. bpy_extras/view3d_utils/__init__.pyi +2 -2
  96. {fake_bpy_module-20241207.dist-info → fake_bpy_module-20241209.dist-info}/METADATA +1 -1
  97. {fake_bpy_module-20241207.dist-info → fake_bpy_module-20241209.dist-info}/RECORD +115 -115
  98. freestyle/functions/__init__.pyi +16 -4
  99. freestyle/types/__init__.pyi +60 -23
  100. freestyle/utils/ContextFunctions/__init__.pyi +2 -2
  101. gpu/capabilities/__init__.pyi +2 -1
  102. gpu/state/__init__.pyi +2 -2
  103. gpu/types/__init__.pyi +2 -2
  104. gpu_extras/batch/__init__.pyi +6 -3
  105. idprop/types/__init__.pyi +4 -3
  106. imbuf/__init__.pyi +2 -1
  107. imbuf/types/__init__.pyi +5 -2
  108. mathutils/__init__.pyi +25 -14
  109. mathutils/bvhtree/__init__.pyi +8 -7
  110. mathutils/geometry/__init__.pyi +38 -17
  111. mathutils/interpolate/__init__.pyi +2 -1
  112. mathutils/kdtree/__init__.pyi +11 -6
  113. mathutils/noise/__init__.pyi +2 -1
  114. {fake_bpy_module-20241207.dist-info → fake_bpy_module-20241209.dist-info}/WHEEL +0 -0
  115. {fake_bpy_module-20241207.dist-info → fake_bpy_module-20241209.dist-info}/top_level.txt +0 -0
@@ -61,12 +61,15 @@ def box_fit_2d(points) -> float:
61
61
  :rtype: float
62
62
  """
63
63
 
64
- def box_pack_2d(boxes: float):
64
+ def box_pack_2d(
65
+ boxes: list[list[float, float, float, float, int]],
66
+ ) -> tuple[float, float]:
65
67
  """Returns a tuple with the width and height of the packed bounding box.
66
68
 
67
69
  :param boxes: list of boxes, each box is a list where the first 4 items are [X, Y, width, height, ...] other items are ignored. The X & Y values in this list are modified to set the packed positions.
68
- :type boxes: float
70
+ :type boxes: list[list[float, float, float, float, int]]
69
71
  :return: The width and height of the packed bounding box.
72
+ :rtype: tuple[float, float]
70
73
  """
71
74
 
72
75
  def closest_point_on_tri(
@@ -89,16 +92,24 @@ def closest_point_on_tri(
89
92
  :rtype: mathutils.Vector
90
93
  """
91
94
 
92
- def convex_hull_2d(points):
95
+ def convex_hull_2d(points) -> list[int]:
93
96
  """Returns a list of indices into the list given
94
97
 
95
98
  :param points: Sequence of 2D points.
96
99
  :return: a list of indices
100
+ :rtype: list[int]
97
101
  """
98
102
 
99
103
  def delaunay_2d_cdt(
100
104
  vert_coords, edges, faces, output_type: int, epsilon: float, need_ids=True
101
- ):
105
+ ) -> tuple[
106
+ list[mathutils.Vector],
107
+ list[tuple[int, int]],
108
+ list[list[int]],
109
+ list[list[int]],
110
+ list[list[int]],
111
+ list[list[int]],
112
+ ]:
102
113
  """Computes the Constrained Delaunay Triangulation of a set of vertices,
103
114
  with edges and faces that must appear in the triangulation.
104
115
  Some triangles may be eaten away, or combined with other triangles,
@@ -121,6 +132,7 @@ def delaunay_2d_cdt(
121
132
  :type epsilon: float
122
133
  :param need_ids: are the orig output arrays needed?
123
134
  :return: Output tuple, (vert_coords, edges, faces, orig_verts, orig_edges, orig_faces)
135
+ :rtype: tuple[list[mathutils.Vector], list[tuple[int, int]], list[list[int]], list[list[int]], list[list[int]], list[list[int]]]
124
136
  """
125
137
 
126
138
  def distance_point_to_plane(
@@ -145,7 +157,7 @@ def interpolate_bezier(
145
157
  handle2: collections.abc.Sequence[float] | mathutils.Vector,
146
158
  knot2: collections.abc.Sequence[float] | mathutils.Vector,
147
159
  resolution: int,
148
- ):
160
+ ) -> list[mathutils.Vector]:
149
161
  """Interpolate a bezier spline segment.
150
162
 
151
163
  :param knot1: First bezier spline point.
@@ -159,6 +171,7 @@ def interpolate_bezier(
159
171
  :param resolution: Number of points to return.
160
172
  :type resolution: int
161
173
  :return: The interpolated points.
174
+ :rtype: list[mathutils.Vector]
162
175
  """
163
176
 
164
177
  def intersect_line_line(
@@ -166,7 +179,7 @@ def intersect_line_line(
166
179
  v2: collections.abc.Sequence[float] | mathutils.Vector,
167
180
  v3: collections.abc.Sequence[float] | mathutils.Vector,
168
181
  v4: collections.abc.Sequence[float] | mathutils.Vector,
169
- ):
182
+ ) -> tuple[mathutils.Vector, mathutils.Vector]:
170
183
  """Returns a tuple with the points on each line respectively closest to the other.
171
184
 
172
185
  :param v1: First point of the first line
@@ -178,6 +191,7 @@ def intersect_line_line(
178
191
  :param v4: Second point of the second line
179
192
  :type v4: collections.abc.Sequence[float] | mathutils.Vector
180
193
  :return: The intersection on each line or None when the lines are co-linear.
194
+ :rtype: tuple[mathutils.Vector, mathutils.Vector]
181
195
  """
182
196
 
183
197
  def intersect_line_line_2d(
@@ -228,7 +242,7 @@ def intersect_line_sphere(
228
242
  sphere_co: collections.abc.Sequence[float] | mathutils.Vector,
229
243
  sphere_radius: float,
230
244
  clip=True,
231
- ) -> mathutils.Vector:
245
+ ) -> tuple[mathutils.Vector, mathutils.Vector]:
232
246
  """Takes a line (as 2 points) and a sphere (as a point and a radius) and
233
247
  returns the intersection
234
248
 
@@ -241,7 +255,7 @@ def intersect_line_sphere(
241
255
  :param sphere_radius: Radius of the sphere
242
256
  :type sphere_radius: float
243
257
  :return: The intersection points as a pair of vectors or None when there is no intersection
244
- :rtype: mathutils.Vector
258
+ :rtype: tuple[mathutils.Vector, mathutils.Vector]
245
259
  """
246
260
 
247
261
  def intersect_line_sphere_2d(
@@ -250,7 +264,7 @@ def intersect_line_sphere_2d(
250
264
  sphere_co: collections.abc.Sequence[float] | mathutils.Vector,
251
265
  sphere_radius: float,
252
266
  clip=True,
253
- ) -> mathutils.Vector:
267
+ ) -> tuple[mathutils.Vector, mathutils.Vector]:
254
268
  """Takes a line (as 2 points) and a sphere (as a point and a radius) and
255
269
  returns the intersection
256
270
 
@@ -263,7 +277,7 @@ def intersect_line_sphere_2d(
263
277
  :param sphere_radius: Radius of the sphere
264
278
  :type sphere_radius: float
265
279
  :return: The intersection points as a pair of vectors or None when there is no intersection
266
- :rtype: mathutils.Vector
280
+ :rtype: tuple[mathutils.Vector, mathutils.Vector]
267
281
  """
268
282
 
269
283
  def intersect_plane_plane(
@@ -271,7 +285,7 @@ def intersect_plane_plane(
271
285
  plane_a_no: collections.abc.Sequence[float] | mathutils.Vector,
272
286
  plane_b_co: collections.abc.Sequence[float] | mathutils.Vector,
273
287
  plane_b_no: collections.abc.Sequence[float] | mathutils.Vector,
274
- ):
288
+ ) -> tuple | tuple[mathutils.Vector, mathutils.Vector]:
275
289
  """Return the intersection between two planes
276
290
 
277
291
  :param plane_a_co: Point on the first plane
@@ -283,19 +297,21 @@ def intersect_plane_plane(
283
297
  :param plane_b_no: Normal of the second plane
284
298
  :type plane_b_no: collections.abc.Sequence[float] | mathutils.Vector
285
299
  :return: The line of the intersection represented as a point and a vector or None if the intersection can't be calculated
300
+ :rtype: tuple | tuple[mathutils.Vector, mathutils.Vector]
286
301
  """
287
302
 
288
303
  def intersect_point_line(
289
304
  pt: collections.abc.Sequence[float] | mathutils.Vector,
290
305
  line_p1: collections.abc.Sequence[float] | mathutils.Vector,
291
306
  line_p2,
292
- ):
307
+ ) -> tuple[mathutils.Vector, float]:
293
308
  """Takes a point and a line and returns a tuple with the closest point on the line and its distance from the first point of the line as a percentage of the length of the line.
294
309
 
295
310
  :param pt: Point
296
311
  :type pt: collections.abc.Sequence[float] | mathutils.Vector
297
312
  :param line_p1: First point of the lineSecond point of the line
298
313
  :type line_p1: collections.abc.Sequence[float] | mathutils.Vector
314
+ :rtype: tuple[mathutils.Vector, float]
299
315
  """
300
316
 
301
317
  def intersect_point_quad_2d(
@@ -392,7 +408,7 @@ def intersect_sphere_sphere_2d(
392
408
  radius_a: float,
393
409
  p_b: collections.abc.Sequence[float] | mathutils.Vector,
394
410
  radius_b: float,
395
- ):
411
+ ) -> tuple | tuple[mathutils.Vector, mathutils.Vector]:
396
412
  """Returns 2 points on between intersecting circles.
397
413
 
398
414
  :param p_a: Center of the first circle
@@ -404,6 +420,7 @@ def intersect_sphere_sphere_2d(
404
420
  :param radius_b: Radius of the second circle
405
421
  :type radius_b: float
406
422
  :return: 2 points on between intersecting circles or None when there is no intersection.
423
+ :rtype: tuple | tuple[mathutils.Vector, mathutils.Vector]
407
424
  """
408
425
 
409
426
  def intersect_tri_tri_2d(tri_a1, tri_a2, tri_a3, tri_b1, tri_b2, tri_b3) -> bool:
@@ -420,23 +437,27 @@ def normal(vectors) -> mathutils.Vector:
420
437
  """
421
438
 
422
439
  def points_in_planes(
423
- planes, epsilon_coplanar: float = 0.0001, epsilon_isect: float = 1e-06
424
- ):
440
+ planes: list[collections.abc.Sequence[float] | mathutils.Vector],
441
+ epsilon_coplanar: float = 0.0001,
442
+ epsilon_isect: float = 1e-06,
443
+ ) -> tuple[list[mathutils.Vector], list[int]]:
425
444
  """Returns a list of points inside all planes given and a list of index values for the planes used.
426
445
 
427
446
  :param planes: List of planes (4D vectors).
447
+ :type planes: list[collections.abc.Sequence[float] | mathutils.Vector]
428
448
  :param epsilon_coplanar: Epsilon value for interpreting plane pairs as co-plannar.
429
449
  :type epsilon_coplanar: float
430
450
  :param epsilon_isect: Epsilon value for intersection.
431
451
  :type epsilon_isect: float
432
452
  :return: Two lists, once containing the 3D coordinates inside the planes, another containing the plane indices used.
453
+ :rtype: tuple[list[mathutils.Vector], list[int]]
433
454
  """
434
455
 
435
- def tessellate_polygon(polylines) -> int:
456
+ def tessellate_polygon(polylines) -> list[tuple[int, int, int]]:
436
457
  """Takes a list of polylines (each point a pair or triplet of numbers) and returns the point indices for a polyline filled with triangles. Does not handle degenerate geometry (such as zero-length lines due to consecutive identical points).
437
458
 
438
459
  :param polylines: Polygons where each polygon is a sequence of 2D or 3D points.
439
- :rtype: int
460
+ :rtype: list[tuple[int, int, int]]
440
461
  """
441
462
 
442
463
  def volume_tetrahedron(
@@ -7,9 +7,10 @@ import typing
7
7
  import collections.abc
8
8
  import typing_extensions
9
9
 
10
- def poly_3d_calc(veclist, pt):
10
+ def poly_3d_calc(veclist, pt) -> list[float]:
11
11
  """Calculate barycentric weights for a point on a polygon.
12
12
 
13
13
  :param veclist: Sequence of 3D positions.
14
14
  :param pt: 2D or 3D position. :type pt: Sequence[float] :return: list of per-vector weights.
15
+ :rtype: list[float]
15
16
  """
@@ -8,6 +8,7 @@ Generic 3-dimensional kd-tree to perform spatial searches.
8
8
  import typing
9
9
  import collections.abc
10
10
  import typing_extensions
11
+ import mathutils
11
12
 
12
13
  class KDTree:
13
14
  """KdTree(size) -> new kd-tree initialized to hold size items."""
@@ -15,34 +16,38 @@ class KDTree:
15
16
  def balance(self):
16
17
  """Balance the tree."""
17
18
 
18
- def find(self, co, filter: collections.abc.Callable | None = None) -> int:
19
+ def find(
20
+ self, co, filter: collections.abc.Callable | None = None
21
+ ) -> tuple[mathutils.Vector, int, float]:
19
22
  """Find nearest point to co.
20
23
 
21
24
  :param co: 3D coordinates.
22
25
  :param filter: function which takes an index and returns True for indices to include in the search.
23
26
  :type filter: collections.abc.Callable | None
24
27
  :return: Returns (position, index, distance).
25
- :rtype: int
28
+ :rtype: tuple[mathutils.Vector, int, float]
26
29
  """
27
30
 
28
- def find_n(self, co, n: int) -> int:
31
+ def find_n(self, co, n: int) -> list[tuple[mathutils.Vector, int, float]]:
29
32
  """Find nearest n points to co.
30
33
 
31
34
  :param co: 3D coordinates.
32
35
  :param n: Number of points to find.
33
36
  :type n: int
34
37
  :return: Returns a list of tuples (position, index, distance).
35
- :rtype: int
38
+ :rtype: list[tuple[mathutils.Vector, int, float]]
36
39
  """
37
40
 
38
- def find_range(self, co, radius: float) -> int:
41
+ def find_range(
42
+ self, co, radius: float
43
+ ) -> list[tuple[mathutils.Vector, int, float]]:
39
44
  """Find all points within radius of co.
40
45
 
41
46
  :param co: 3D coordinates.
42
47
  :param radius: Distance to search for points.
43
48
  :type radius: float
44
49
  :return: Returns a list of tuples (position, index, distance).
45
- :rtype: int
50
+ :rtype: list[tuple[mathutils.Vector, int, float]]
46
51
  """
47
52
 
48
53
  def insert(self, co, index: int):
@@ -295,7 +295,7 @@ def voronoi(
295
295
  position: collections.abc.Sequence[float] | mathutils.Vector,
296
296
  distance_metric: str = "DISTANCE",
297
297
  exponent: float = 2.5,
298
- ):
298
+ ) -> list[list[float], list[mathutils.Vector]]:
299
299
  """Returns a list of distances to the four closest features and their locations.
300
300
 
301
301
  :param position: The position to evaluate the selected noise function.
@@ -305,4 +305,5 @@ def voronoi(
305
305
  :param exponent: The exponent for Minkowski distance metric.
306
306
  :type exponent: float
307
307
  :return: A list of distances to the four closest features and their locations.
308
+ :rtype: list[list[float], list[mathutils.Vector]]
308
309
  """