-
-
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
Clarify why some module-level objects in typing
have default values
#7037
Conversation
This comment has been minimized.
This comment has been minimized.
@@ -33,7 +34,7 @@ def runtime_checkable(cls: _TC) -> _TC: ... | |||
|
|||
# This alias for above is kept here for backwards compatibility. | |||
runtime = runtime_checkable | |||
Protocol: _SpecialForm = ... | |||
Protocol: _SpecialForm |
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.
Can we re-export Protocol from typing?
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.
It's not over till mypy_primer sings, but it looks like we can!
I hate it when flake8 complains at me with error codes I introduced. |
…peshed into reorganise-typing
This comment has been minimized.
This comment has been minimized.
1 similar comment
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
I take it by your silence @JelleZijlstra that you're not a fan of this PR ;) shall I close it? |
Sorry, too many things to look at. I'll review it later today. |
Of course, sorry for nagging! No rush. |
One possible solution to the issue raised in #7036 (comment).
cc. @JelleZijlstra