-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Should __all__
itself be included?
#6810
Comments
We already have a recommendation to that effect in the Type Stubs document. At some point, we should redirect to that from |
Related question: What should be done when |
You should fix it upstream ;-) |
Fair, but a decision still has to be taken in the mean time while developping stubs >.< I think the best is to type-ignore it if stubtest is to flag a difference in Concerning the original question: Doesn't |
I think there is consensus that |
Our
CONTRIBUTING.md
guide says that all names in__all__
should be included. But, should__all__
itself be defined?I've seen that some modules do have
__all__
inside. Some - don't.It is not related to the original source: some modules with
__all__
defined in the source code do not have__all__
defined in stubs. Some are very accurate and even include different versions.As @srittau said in #5569 it looks inconsistent.
Maybe we should:
CONTRIBUTING.md
about adding__all__
for newly added stubs?__all__
on modified modules to slowly fix all files?Refs #1287
The text was updated successfully, but these errors were encountered: