-
-
Notifications
You must be signed in to change notification settings - Fork 3k
[mypyc] fix: isinstance_native fast path conflict w/ interp. subclasses [1/1] #19957
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
base: master
Are you sure you want to change the base?
[mypyc] fix: isinstance_native fast path conflict w/ interp. subclasses [1/1] #19957
Conversation
i think it would make sense for Edit: though looking at the internals of i see there's one more use of could you also add an IR build test with code that hits this bug? |
This is preventing me from updating one of my projects to 1.18, what would you say about cherry-picking this and the crash fix in #19960 to a 1.18.3? |
not sure if there's going to be a 1.18.3 since #19764 is closed but maybe you could suggest it there. |
There is a bug in
isinstance_native
when one or more of the classes allows interpreted subclasses.When interpreted subclasses are allowed, we cannot make any assumptions about the number of subclasses at compile time.
I'm not sure if this fix is better suited in
all_concrete_classes