Skip to content

Commit 17e5a77

Browse files
Replace the TypeError message code in the _typecheck_input method in … (#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>
1 parent 85d9ac8 commit 17e5a77

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

manim/animation/creation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ def __init__(
250250

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

255257
def begin(self) -> None:
256258
self.outline = self.get_outline()

0 commit comments

Comments
 (0)