-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Support dict(name=x, ...) #239
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
Comments
The common case should actually be pretty easy to implement by just special casing this in the semantic analyzer and using the The |
Increasing priority as this is actually a pretty common issue. |
Yeah, I see this a lot in our latest demo project. |
This now works but for heterogeneous dictionaries the inferred type will likely be |
Support
dict(name=x, ...)
in the type checker. Infer key type asstr
and value type based on keyword argument types.We can't represent the signature of
dict
precisely using current functionality alone, i.e. we need some new type checker functionality.The text was updated successfully, but these errors were encountered: