mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
Complete typing of manim.utils.color and polish its documentation (#4065)
* Type color and polish docstrings * Stop ignoring manim.utils.color MyPy errors * Remove manim.mobject.mobject from mypy.ini (put there on accident) * Fix MyPy errors in GitHub pre-commit * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Modify _construct_from_space parameter type * Modify _construct_from_space parameter type * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix: remove duplicate property definitions --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
This commit is contained in:
parent
8bb28aae8e
commit
765c090027
3 changed files with 429 additions and 350 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -15,6 +15,12 @@ if TYPE_CHECKING:
|
|||
from manim.typing import MatrixMN, Point3D
|
||||
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from manim.typing import MatrixMN
|
||||
|
||||
|
||||
depth = 20
|
||||
|
||||
__all__ = [
|
||||
|
|
@ -31,7 +37,6 @@ __all__ = [
|
|||
"view_matrix",
|
||||
]
|
||||
|
||||
|
||||
FlattenedMatrix4x4: TypeAlias = tuple[
|
||||
float,
|
||||
float,
|
||||
|
|
|
|||
3
mypy.ini
3
mypy.ini
|
|
@ -85,6 +85,9 @@ ignore_errors = True
|
|||
[mypy-manim.utils.hashing.*]
|
||||
ignore_errors = True
|
||||
|
||||
[mypy-manim.utils.color.*]
|
||||
ignore_errors = False
|
||||
|
||||
[mypy-manim.utils.iterables]
|
||||
warn_return_any = False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue