-
-
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
Reduce code duplication in the email module #7558
Conversation
This comment has been minimized.
This comment has been minimized.
_typeshed.email.pyi
_typeshed/email.pyi
This comment has been minimized.
This comment has been minimized.
Sorry for the late reply, but do we need this in |
No worries — no rush!
Sure — though if we do that, we'll probably have to give them names with a leading underscore, and it feels a bit weird to import names with a leading underscore from other modules. I also thought that we already did something similar with |
At least the aliases and protocols in |
Yes. |
To me, |
What do we think about perhaps adding a fictitious submodule to the |
There appears to be little enthusiasm for this idea. I'll move the aliases to |
This comment has been minimized.
This comment has been minimized.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
_typeshed/email.pyi
Thanks @srittau! |
Sorry for not answering earlier: |
2 type aliases and one
TypeVar
have duplicate definitions in severalemail
submodules. I think it makes sense to move these definitions to a submodule in_typeshed
instead, to reduce code duplicaiton.