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
Required
/NotRequired
don't work with __future__.annotations
#55
Comments
What Python version are you running? Does this reproduce with |
I don't have (easy) access to a 3.11 build, but it reproduces with 4.3.0 on both 3.10 and 3.9. |
I can reproduce using |
just ran into this issue with 4.3.0 and python 3.7.6 - any fix in the works? thanks! |
So is this fixed by #60 or not? It seems to be an issue with the upstream cpython typing module as well -- did someone already file an issue there? Please link it here. |
#60 would fix this in simple cases, but I think it will cause more problems than it solves. I'm inclined to wontfix this. Maybe we can revisit once there's a resolution on the PEP 563/649 saga. |
It's fine to not want to solve this for now. In fact one could argue that, since the point of |
Required
/NotRequired
aren't properly detected whenfrom __future__ import annotations
is used, leading to incorrect__required_keys__
/__optional_keys__
sets.Reproduced with 4.3.0.
The text was updated successfully, but these errors were encountered: