Skip to content

Commit

Permalink
Replace the TypeError message code in the _typecheck_input method in … (
Browse files Browse the repository at this point in the history
#3890)

* Replace the TypeError message code in the _typecheck_input method in the DrawBorderThenFill class.

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

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
irvanalhaq9 and pre-commit-ci[bot] authored Jul 30, 2024
1 parent 85d9ac8 commit 17e5a77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manim/animation/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ def __init__(

def _typecheck_input(self, vmobject: VMobject | OpenGLVMobject) -> None:
if not isinstance(vmobject, (VMobject, OpenGLVMobject)):
raise TypeError("DrawBorderThenFill only works for vectorized Mobjects")
raise TypeError(
f"{self.__class__.__name__} only works for vectorized Mobjects"
)

def begin(self) -> None:
self.outline = self.get_outline()
Expand Down

0 comments on commit 17e5a77

Please sign in to comment.