fake-bpy-module 20241228__py3-none-any.whl → 20241230__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.

@@ -17,21 +17,27 @@ class KDTree:
17
17
  """Balance the tree."""
18
18
 
19
19
  def find(
20
- self, co, filter: collections.abc.Callable | None = None
20
+ self,
21
+ co: collections.abc.Sequence[float],
22
+ filter: collections.abc.Callable[int, bool] | None = None,
21
23
  ) -> tuple[mathutils.Vector, int, float]:
22
24
  """Find nearest point to co.
23
25
 
24
26
  :param co: 3D coordinates.
27
+ :type co: collections.abc.Sequence[float]
25
28
  :param filter: function which takes an index and returns True for indices to include in the search.
26
- :type filter: collections.abc.Callable | None
29
+ :type filter: collections.abc.Callable[int, bool] | None
27
30
  :return: Returns (position, index, distance).
28
31
  :rtype: tuple[mathutils.Vector, int, float]
29
32
  """
30
33
 
31
- def find_n(self, co, n: int) -> list[tuple[mathutils.Vector, int, float]]:
34
+ def find_n(
35
+ self, co: collections.abc.Sequence[float], n: int
36
+ ) -> list[tuple[mathutils.Vector, int, float]]:
32
37
  """Find nearest n points to co.
33
38
 
34
39
  :param co: 3D coordinates.
40
+ :type co: collections.abc.Sequence[float]
35
41
  :param n: Number of points to find.
36
42
  :type n: int
37
43
  :return: Returns a list of tuples (position, index, distance).
@@ -39,21 +45,23 @@ class KDTree:
39
45
  """
40
46
 
41
47
  def find_range(
42
- self, co, radius: float
48
+ self, co: collections.abc.Sequence[float], radius: float
43
49
  ) -> list[tuple[mathutils.Vector, int, float]]:
44
50
  """Find all points within radius of co.
45
51
 
46
52
  :param co: 3D coordinates.
53
+ :type co: collections.abc.Sequence[float]
47
54
  :param radius: Distance to search for points.
48
55
  :type radius: float
49
56
  :return: Returns a list of tuples (position, index, distance).
50
57
  :rtype: list[tuple[mathutils.Vector, int, float]]
51
58
  """
52
59
 
53
- def insert(self, co, index: int):
60
+ def insert(self, co: collections.abc.Sequence[float], index: int):
54
61
  """Insert a point into the KDTree.
55
62
 
56
63
  :param co: Point 3d position.
64
+ :type co: collections.abc.Sequence[float]
57
65
  :param index: The index of the point.
58
66
  :type index: int
59
67
  """
rna_info/__init__.pyi CHANGED
@@ -66,7 +66,7 @@ class InfoPropertyRNA:
66
66
  class_fmt="{:s}",
67
67
  mathutils_fmt="{:s}",
68
68
  collection_id="Collection",
69
- enum_descr_override: str | None = None,
69
+ enum_descr_override: None | str | None = None,
70
70
  ):
71
71
  """
72
72
 
@@ -77,7 +77,7 @@ class InfoPropertyRNA:
77
77
  :param collection_id:
78
78
  :param enum_descr_override: Optionally override items for enum.
79
79
  Otherwise expand the literal items.
80
- :type enum_descr_override: str | None
80
+ :type enum_descr_override: None | str | None
81
81
  """
82
82
 
83
83
  class InfoStructRNA: