Skip to content

Use Type Checker like mypy to check the type annotations. #4247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dsr20030703 opened this issue May 13, 2025 · 0 comments
Open

Use Type Checker like mypy to check the type annotations. #4247

dsr20030703 opened this issue May 13, 2025 · 0 comments
Labels
new feature Enhancement specifically adding a new feature (feature request should be used for issues instead)

Comments

@dsr20030703
Copy link

Description of proposed feature

I’ve found some type annotation errors in manim. For example, the argument color of FadeToColor expected str, which should actually be ParsableManimColor.

As there may be also other type annotation errors, I suggest using type checkers like mypy to check type annotations.

How can the new feature be used?

This helps ensure that you’re using variables and functions in your code correctly. Plus, it would benefit other Python projects using type checkers to import manim.

Additional comments

@dsr20030703 dsr20030703 added the new feature Enhancement specifically adding a new feature (feature request should be used for issues instead) label May 13, 2025
@github-project-automation github-project-automation bot moved this to 🆕 New in Dev Board May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Enhancement specifically adding a new feature (feature request should be used for issues instead)
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant