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

Support protocol inference for Type[T] via metaclass #14554

Merged
merged 1 commit into from
Jan 29, 2023

Conversation

ilevkivskyi
Copy link
Member

Fixes #12553

This looks quite niche, but also it was mentioned recently couple times for a real-life use case: enum classes, and implementation looks simple.

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@github-actions
Copy link
Contributor

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

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.

iter doesn't work on TypeVar with bound of Enum
2 participants