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

Fixed recent regression in isinstance type narrowing logic that aff… #9588

Merged
merged 1 commit into from
Dec 15, 2024

Conversation

erictraut
Copy link
Collaborator

…ects the case where the filter type is a metaclass. This addresses #9441.

…ects the case where the filter type is a metaclass. This addresses #9441.
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

sympy (https://github.com/sympy/sympy)
+   /tmp/mypy_primer/projects/sympy/sympy/polys/polyoptions.py:73:9 - error: Argument of type "Self@OptionType" cannot be assigned to parameter "value" of type "type[Option]" in function "__setitem__"
+     Type "Self@OptionType" is not assignable to type "type[Option]" (reportArgumentType)
- 32398 errors, 67 warnings, 0 informations 
+ 32399 errors, 67 warnings, 0 informations 

@erictraut erictraut merged commit d22c800 into main Dec 15, 2024
18 checks passed
@erictraut erictraut deleted the issue-9441 branch December 15, 2024 22:09
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.

1 participant