You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add type annotations to scene.py and vector_space_scene.py (#4260)
* Stop ignoring errors from manim/scene.py
Count: 307 errors
Type annotations on scene/vector_space_scene.py
Add type annotations to scene/vector_space_scene.py
Mypy count: 210
Reverting two changes that triggers an error in the automatic testing.
Further work on type hinting.
Avoid forwarding positional arguments from Arrow to Line in the constructor.
Revert "Avoid forwarding positional arguments from Arrow to Line in the constructor."
This reverts commit 80ae857.
Removed several type ignore statements and addressed comments from JasonGrace2282
Revert "Activate mypy check of mobject.geometry.*"
This reverts commit d477c9a.
Revert "Removed several type ignore statements and addressed comments from JasonGrace2282"
This reverts commit 07bbe3f.
Added type annotations to zoomed_scene.py
Error count: 308 -> 303
Adding type annotations to all methods in vector_space_scene.py
Error count: 303 -> 272
Get rid of no-untyped-call errors from my in the vector_space_scene.py file
Error count: 272 -> 343
Handle type issues related to ManimColor in vector_space_scene.py
Handle var-annotated issues in vector_space_scene.py
Error count: 332 -> 330
Handling has-type type errors in vector_space_scene.py
Error count: 330 -> 285
Handled name-defined type issues in vector_space_scene.py
Error count: 285 -> 282
Address type issue with calling an untyped method.
Error count: 282 -> 281
Fix some typing issues in transform_mathcing_parts.py
Change stroke_width to float in vector_space_scene.py
Handled a few type errors.
Error count: 267
Handled several typing issues in three_d_scene.py
Error count: 267 -> 248
Dealing with type errors in scene_file_writer.py
Error count: 248 -> 216
Ensured that all methods in scene.py have type declarations.
Error count: 216 -> 225
Handle type issues related to interactivity by asserting that the camera is the OpenGLCamera
Error count: 225 -> 182
Handle type issues in scene.py
Error count: 182 -> 167
Asserting that the renderer or camera is of the proper type to use certain methods.
This is mainly related to interactive elements and the 3D camera used in the ThreeDScene
Error count: 167 -> 143
Avoid cyclic import of dependencies
Error count: 143 -> 143
Handling no-untyped-call type errors in manim/scene/scene.py
Error count: 143 -> 131
Handling assignment type errors in manim/scene/*.py
Error count: 131 -> 121
Handling arg-type type errors in manim/scene/*.py
Error count: 121 -> 116
Handling arg-type type errors in manim/scene/*.py
Error count: 116 -> 112
Fixing various type errors
Error count: 112 -> 102
Fixing various type errors
Error count: 102 -> 97
Fixing various type errors
Error count: 97 -> 90
Some aggressive changes to silence a significant number of type errors.
Error count: 90 -> 66
Commented out an import (IPython) that makes the CI tests fail.
Fix various type errors.
More type annotations.
Code cleanup.
Remove the property mobject_updater_lists of the Scene class as it is not used anywhere.
Handle import-untyped typing issues.
More work on type annotations in manin/scene/.*
More work on scenes/*.py looking at the dependency opengl_renderer.py
More work on types in scenes/*.py
Ignored an old bunch of type ignore statements.
More work on dependencies for scene.py
More work on dependencies for scene.py
* Stop ignoring errors from manim/scene/scene.py
mypy error count: 307
* Adding type annotations to scene.py (C1)
* Adding type annotations to scene.py (C2.1)
* Adding type annotations to scene.py (C2.2)
* Adding type annotations to scene.py (C2.3)
* Adding type annotations to scene.py (C3)
* Adding type annotations to scene.py (C4)
* Adding type annotations to scene.py (C5)
* Adding type annotations to scene.py (C6)
* Adding type annotations to scene.py (C7)
* ...
* Focus on scene.py
* Adding type annotations to vector_space_scene.py
* Added types to opengl_renderer.py
* Added types to cairo_renderer.py
* Fixed the last mypy errors in scene.py - many was ignored
* Fixed the last mypy errors in vector_space_scene.py - many was ignored
* Got rid of the last mypy errors.
* Activate mypy check of vector_space_scene.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Code cleanup.
* Update manim/gui/gui.py
Co-authored-by: Francisco Manríquez Novoa <[email protected]>
* Update manim/renderer/opengl_renderer.py
Co-authored-by: Francisco Manríquez Novoa <[email protected]>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update manim/scene/scene.py
Co-authored-by: Francisco Manríquez Novoa <[email protected]>
* Update manim/scene/scene.py
Co-authored-by: Francisco Manríquez Novoa <[email protected]>
* Update manim/scene/scene.py
Co-authored-by: Francisco Manríquez Novoa <[email protected]>
* Update manim/scene/scene.py
Co-authored-by: Francisco Manríquez Novoa <[email protected]>
* Update manim/scene/scene.py
Co-authored-by: Francisco Manríquez Novoa <[email protected]>
* Implementing suggestions from chopan50
* Explicitly mention all files where type errors are ignored in mypy.ini
# Conflicts:
# mypy.ini
* Fix issue
* Updates based on comments from chopan50
* Updates suggested by Chopan50
* Addressed more comments from chopan50
* Addressing more comments from chopan50
* Added docstring to SceneInteractAction
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Differentiate between _AnimationBuilder from an mobject and an opengl_mobject
* Avoid a nameclash with the mobject module and variable name
* Last touches.
* Rolled back some changes related to _AnimationBuilder
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Francisco Manríquez Novoa <[email protected]>
0 commit comments