mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Adjust typings
This commit is contained in:
parent
0406ef70bb
commit
b387bc0c95
3 changed files with 21 additions and 9 deletions
|
@ -20,12 +20,16 @@ if TYPE_CHECKING:
|
||||||
|
|
||||||
ManimColor = Union[str, Color]
|
ManimColor = Union[str, Color]
|
||||||
Span = tuple[int, int]
|
Span = tuple[int, int]
|
||||||
SingleSelector = Union[
|
Selector = Union[
|
||||||
str,
|
str,
|
||||||
re.Pattern,
|
re.Pattern,
|
||||||
tuple[Union[int, None], Union[int, None]]
|
tuple[Union[int, None], Union[int, None]],
|
||||||
|
Iterable[
|
||||||
|
str,
|
||||||
|
re.Pattern,
|
||||||
|
tuple[Union[int, None], Union[int, None]]
|
||||||
|
]
|
||||||
]
|
]
|
||||||
Selector = Union[SingleSelector, Iterable[SingleSelector]]
|
|
||||||
|
|
||||||
|
|
||||||
class LabelledString(SVGMobject, ABC):
|
class LabelledString(SVGMobject, ABC):
|
||||||
|
|
|
@ -18,12 +18,16 @@ if TYPE_CHECKING:
|
||||||
|
|
||||||
ManimColor = Union[str, Color]
|
ManimColor = Union[str, Color]
|
||||||
Span = tuple[int, int]
|
Span = tuple[int, int]
|
||||||
SingleSelector = Union[
|
Selector = Union[
|
||||||
str,
|
str,
|
||||||
re.Pattern,
|
re.Pattern,
|
||||||
tuple[Union[int, None], Union[int, None]]
|
tuple[Union[int, None], Union[int, None]],
|
||||||
|
Iterable[
|
||||||
|
str,
|
||||||
|
re.Pattern,
|
||||||
|
tuple[Union[int, None], Union[int, None]]
|
||||||
|
]
|
||||||
]
|
]
|
||||||
Selector = Union[SingleSelector, Iterable[SingleSelector]]
|
|
||||||
|
|
||||||
|
|
||||||
SCALE_FACTOR_PER_FONT_POINT = 0.001
|
SCALE_FACTOR_PER_FONT_POINT = 0.001
|
||||||
|
|
|
@ -33,12 +33,16 @@ if TYPE_CHECKING:
|
||||||
|
|
||||||
ManimColor = Union[str, Color]
|
ManimColor = Union[str, Color]
|
||||||
Span = tuple[int, int]
|
Span = tuple[int, int]
|
||||||
SingleSelector = Union[
|
Selector = Union[
|
||||||
str,
|
str,
|
||||||
re.Pattern,
|
re.Pattern,
|
||||||
tuple[Union[int, None], Union[int, None]]
|
tuple[Union[int, None], Union[int, None]],
|
||||||
|
Iterable[
|
||||||
|
str,
|
||||||
|
re.Pattern,
|
||||||
|
tuple[Union[int, None], Union[int, None]]
|
||||||
|
]
|
||||||
]
|
]
|
||||||
Selector = Union[SingleSelector, Iterable[SingleSelector]]
|
|
||||||
|
|
||||||
|
|
||||||
TEXT_MOB_SCALE_FACTOR = 0.0076
|
TEXT_MOB_SCALE_FACTOR = 0.0076
|
||||||
|
|
Loading…
Add table
Reference in a new issue