You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you reporting a bug, or opening a feature request?
Bug
Please insert below the code you are checking with mypy,
or a mock-up repro if the source is private. We would appreciate
if you try to simplify your case to a minimal repro.
This is not really a bug, mypy can't infer such complex types. For this case you probably want to use TypedDict, see http://mypy.readthedocs.io/en/latest/kinds_of_types.html#typeddict. This is the only way to let mypy know that a given key has a specific value type.
Are you reporting a bug, or opening a feature request?
Bug
Please insert below the code you are checking with mypy,
or a mock-up repro if the source is private. We would appreciate
if you try to simplify your case to a minimal repro.
Know that I passed a correct dict, thus no error.
If I remove the key:value
'a': 1
, the check passed without any error.Do you see the same issue after installing mypy from Git master?
Latest one
The text was updated successfully, but these errors were encountered: