mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Change type hints for set_points and append_points to Vect3Array
This commit is contained in:
parent
0115037c82
commit
365bb12dce
1 changed files with 2 additions and 2 deletions
|
@ -176,7 +176,7 @@ class Mobject(object):
|
|||
self.refresh_bounding_box()
|
||||
return self
|
||||
|
||||
def set_points(self, points: npt.ArrayLike):
|
||||
def set_points(self, points: Vect3Array):
|
||||
if len(points) == len(self.data["points"]):
|
||||
self.data["points"][:] = points
|
||||
elif isinstance(points, np.ndarray):
|
||||
|
@ -186,7 +186,7 @@ class Mobject(object):
|
|||
self.refresh_bounding_box()
|
||||
return self
|
||||
|
||||
def append_points(self, new_points: npt.ArrayLike):
|
||||
def append_points(self, new_points: Vect3Array):
|
||||
self.data["points"] = np.vstack([self.data["points"], new_points])
|
||||
self.refresh_bounding_box()
|
||||
return self
|
||||
|
|
Loading…
Add table
Reference in a new issue