Skip to content
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

Merged
merged 7 commits into from
Jan 29, 2022

Conversation

AlexWaygood
Copy link
Member

One possible solution to the issue raised in #7036 (comment).

cc. @JelleZijlstra

@AlexWaygood AlexWaygood marked this pull request as ready for review January 25, 2022 17:29
@github-actions

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
Copy link
Collaborator

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?

Copy link
Member Author

@AlexWaygood AlexWaygood Jan 25, 2022

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!

@AlexWaygood
Copy link
Member Author

I hate it when flake8 complains at me with error codes I introduced.

@github-actions

This comment has been minimized.

1 similar comment
@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood
Copy link
Member Author

I take it by your silence @JelleZijlstra that you're not a fan of this PR ;) shall I close it?

@JelleZijlstra
Copy link
Member

Sorry, too many things to look at. I'll review it later today.

@AlexWaygood
Copy link
Member Author

Sorry, too many things to look at. I'll review it later today.

Of course, sorry for nagging! No rush.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants