mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 19:46:21 +08:00
Use typing_extensions to import Self for python versions <3.11
This commit is contained in:
@ -32,9 +32,9 @@ from manimlib.utils.space_ops import normalize
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing import Callable, Iterable, Sequence, Type, TypeVar, Optional, Self
|
||||
from typing import Callable, Iterable, Sequence, Type, TypeVar, Optional
|
||||
from manimlib.mobject.mobject import Mobject
|
||||
from manimlib.typing import ManimColor, Vect3, Vect3Array, VectN, RangeSpecifier
|
||||
from manimlib.typing import ManimColor, Vect3, Vect3Array, VectN, RangeSpecifier, Self
|
||||
|
||||
T = TypeVar("T", bound=Mobject)
|
||||
|
||||
|
Reference in New Issue
Block a user