Skip to content

Commit d4ff6cf

Browse files
committed
Use cls instead of Self
1 parent b0f5847 commit d4ff6cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manim/animation/animation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __new__(
112112
*args,
113113
use_override=True,
114114
**kwargs,
115-
) -> Self:
115+
):
116116
if isinstance(mobject, Mobject) and use_override:
117117
func = mobject.animation_override_for(cls)
118118
if func is not None:
@@ -122,7 +122,7 @@ def __new__(
122122
f"{type(mobject).__name__} mobjects. use_override = False can "
123123
f" be used as keyword argument to prevent animation overriding.",
124124
)
125-
return cast(Self, anim)
125+
return cast(cls, anim)
126126
return super().__new__(cls)
127127

128128
def __init__(

0 commit comments

Comments
 (0)