-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Typing progress tracker #3375
Comments
Happy to help here 😊. |
Planning on bringing the typing docs up to date when I have time :) |
Fixes typehints in manim.mobject.geometry, and enables type checking of those modules. Part of #3375
Did some work on graphing in #4118, but waiting until some of the other typing PRs are merged. Any recommendation on what to work on? I want to avoid duplicating work, but like to help making progress on the typing. |
I tried to get an overview of the current number of type errors reported by mypy if no errors are ignored. For this the following command was helpful
I had this version checked out (6ca08fd) and obtained this output. The numbers in each line indicate the number of mypy errors that was triggered by that file.
I would suggest that you find a file with a low number of type errors and then address these errors in a single PR. Then moves on to the next file and PR. I can see the following PR's are looking at adding type annotations to the files listed below. It would make sense to avoid adding types to these files.
|
@henrikmidtiby Thanks, that's helpful. I will work on some of them one at a time. |
This issue is meant to track progress related to adding type hints to the library.
Fixes:
Progress (layout subject to changes):
_config
: Add type hints to_config
#3440animation
: Add type hints toanimation
#3457camera
cli
: Add type hints tomanim.cli
module #3988gui
mobject
mobject.geometry
mobject.graphing
mobject.opengl
mobject.svg
mobject.text
mobject.three_d
mobject.types
mobject.*.py
opengl
plugins
: Stop ignoringmanim.plugins
errors inmypy.ini
#4006renderer
scene
utils
__main__.py
: Add typings tomanim/__main__.py
#4007constants.py
: Fix Typing #3086typing.py
Contributing
Contribution guidelines can be found here (TODO).
This issue can be used for any questions (Discord is good place as well).
When starting working on a new module, you can tweak the
ignore_errors
value in themypy.ini
configuration file:manim/.mypy.ini
Lines 4 to 6 in c6450b2
The text was updated successfully, but these errors were encountered: