-
Notifications
You must be signed in to change notification settings - Fork 5
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
Covariant Mapping
s key type?
#803
Comments
see #62 it's covariant because it's safe. the only case in which it would be unsafe is when someone writes a thanks for looking into basedmypy, if you have any questions i'm happy to discuss. we also have a discord if your interested |
Do I understand this correctly? Every time someone tries to write a |
yes, that's correct. although it is most definitely an error (albeit with a lengthy note), we don't emit warnings yet not entirely correct though, the author is entirely free to write a |
Thanks for the explanation ❤️ |
Describe the problem
Why is
Mapping
s key type made covariant? This is already discussed and showed to be unsafe in python/typing#273. This contradicts type theory.Gist to reproduce
No response
Severity
annoying but i can live with it
Your Environment
No response
The text was updated successfully, but these errors were encountered: