[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-04-13 11:17:05 +00:00
commit df6d2682d1
2 changed files with 2 additions and 2 deletions

View file

@ -1943,7 +1943,7 @@ class Mobject:
def put_start_and_end_on(self, start: Point3DLike, end: Point3DLike) -> Self:
current_start, current_end = self.get_start_and_end()
current_vector = current_end - current_start
if np.all(current_vector == 0):
if np.all(current_vector == 0):
warnings.warn(
"put_start_and_end_on has been called on a closed loop or zero-length mobject. "
f"{type(self).__name__} will be shifted to start point instead."

View file

@ -2137,7 +2137,7 @@ class OpenGLMobject:
def put_start_and_end_on(self, start: Point3DLike, end: Point3DLike) -> Self:
current_start, current_end = self.get_start_and_end()
current_vector = current_end - current_start
if np.all(current_vector == 0):
if np.all(current_vector == 0):
warnings.warn(
"put_start_and_end_on has been called on a closed loop or zero-length mobject. "
f"{type(self).__name__} will be shifted to start point instead."