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
Class values as CheckedDict type-arguments are not handled properly #59
Comments
The problem here is that we think we want to create a |
Is |
There is no I think probably what we want here is the static type error on trying to make a CheckedDict with dynamic type as key or value type. |
The difficulty with disallowing a dynamic type is we do want to allow it sometimes. We have things like So I think disallowing it ends up being worse than making it work. I have a fix which would make this work for There's probably a couple of possible solutions for that. One might be to add a way to invoke |
This is now fixed, we'll make a |
9186730
2021-12-01
This issue might be related to #33
What program did you run?
What happened?
The program raises a runtime error.
What should have happened?
We expected two possible outcomes:
CheckedDict[str, C]
is invalid becauseC
is not a valid typeThe text was updated successfully, but these errors were encountered: