-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
4.7.0: new implementation of TypedDict breaks pypy-3.7 and pypy-3.8 #258
Comments
Ah, looks like even PyPy-3.8 is broken: https://github.com/python/typing_extensions/actions/runs/5421296757/jobs/9856554127 |
Hi, I've encountered this too! Only on pypy 3.7 here cause turns out pylint subclasses |
This looks like a bug in pypy: it doesn't properly support
Meanwhile, on pypy3.9-7.3.11 this works fine. I reported https://foss.heptapod.net/pypy/pypy/-/issues/3958. As a workaround, we could go back to the previous implementation of TypedDict on pypy3.7/8 and cut a bugfix release. |
If it was just broken on PyPy-3.7, I wouldn't worry about it, but since this also breaks PyPy-3.8, I think this might be a good idea as a stopgap solution, even though I definitely feel like the bug is on PyPy's side :// |
#262 is a compatibility shim that isn't too invasive for us, and fixes tests on PyPy <3.9 |
See e.g. a CI run on black PR psf/black#3757: https://github.com/psf/black/actions/runs/5420281960/jobs/9854265747?pr=3757
I'm inclined to think this is a bug in PyPy-3.7 (and it looks like it was fixed in PyPy-3.8). It looks like PyPy-3.7 isn't taking any notice of the
__mro_entries__
method we set on TypedDict. But it might be worth explicitly calling out in our docs that the latest version isn't compatible with PyPy-3.7?The text was updated successfully, but these errors were encountered: