-
-
Notifications
You must be signed in to change notification settings - Fork 3k
feat(test): Failure test case for mypyc dictionary subclass views #19076
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?
Conversation
Intended to create a failing test case for the bug seen here: https://github.com/BobTheBuidler/checksum_dict/actions/runs/14843222374/job/41670896987
@JukkaL Would you happen to know what I need to change so the tests are able to find the DefaultDict object in the typing module? Or is there someone better to ask about this? |
Fascinating, I've managed to make it work using a type: ignore comment, and now we have our successful (wut?) failure case! |
It's unclear what's the best approach here. |
Hmm. That could work but I'd first like to try a bit to resolve it, I just need some help to know where I should look for the relevant code. Is there not a strightforward way to tell mypyc to only use the dict.keys c function when |
I've created a failing test case for a mypyc bug with dict views as seen here: https://github.com/BobTheBuidler/checksum_dict/actions/runs/14843222374/job/41670896987
I added some new (working) test cases:
and the failure cases: