-
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
Add typings to OpenGLMobject
#3803
Add typings to OpenGLMobject
#3803
Conversation
def pointwise_become_partial( | ||
self, mobject: OpenGLMobject, a: float, b: float | ||
) -> None: |
Check notice
Code scanning / CodeQL
Mismatch between signature and use of an overridden method Note
call
method OpenGLSurface.pointwise_become_partial
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heyo! Thanks for giving opengl some (very much needed) attention in terms of documentation and typehints :)
I've left a few (admittedly pretty pedantic) comments about the typehints during my first pass-through, I would appreciate you taking a look :)
Done! I think I've addressed everything. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Just a few places where the direction parameter doesn't have a Vector3D
typehint, and this should be good to go!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Self-describing. I did this because
OpenGLMobject
lacks a lot of docstrings and typings, and in the spirit of helping make its code similar toMobject
because they have diverged a lot.Reviewer Checklist