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:
Francisco Manríquez Novoa 2025-01-19 15:46:26 -03:00 committed by GitHub
commit 765c090027
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 429 additions and 350 deletions

File diff suppressed because it is too large Load diff

View file

@ -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,

View file

@ -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