-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
improve type annotations in 'docutils.parsers.rst.directives.misc' #11524
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
improve type annotations in 'docutils.parsers.rst.directives.misc' #11524
Conversation
|
pyright doesn't like the untyped base class |
This comment has been minimized.
This comment has been minimized.
If a subclass can override them to any value of type |
07f03b1 to
9c98b26
Compare
This comment has been minimized.
This comment has been minimized.
9c98b26 to
9835a17
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
8da240e to
e27686d
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
86a8866 to
f8fd824
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
@JelleZijlstra i wasn't sure the best way to annotate the class variables in this one, since they are literal values (not changed at runtime) but can in principle be overridden by subclasses. What's the usual approach?