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

Added support for type narrowing of a class pattern when the specifie… #5576

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

erictraut
Copy link
Collaborator

…d class is type() or a subtype thereof and the subject contains a type[X] whose metaclass potentially matches the pattern. This addresses #5573.

…d class is `type()` or a subtype thereof and the subject contains a `type[X]` whose metaclass potentially matches the pattern. This addresses #5573.
@github-actions
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@erictraut erictraut merged commit 1da8c18 into main Jul 25, 2023
12 checks passed
@erictraut erictraut deleted the issue5573 branch July 25, 2023 18:35
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.

2 participants