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
I have a large block of decently-nested JSON that I wrote types for using TypedDicts. I would like to verify that my types are correct by assigning a Python representation of one of the JSON blobs using the appropriate type variable. However, I am getting errors like
tests/test.py:15: error: Incompatible types in assignment (expression has type "Dict[str, List[List[object]]]", variable has type "SeriesVolumeCovers")
Bug Report
I have a large block of decently-nested JSON that I wrote types for using TypedDicts. I would like to verify that my types are correct by assigning a Python representation of one of the JSON blobs using the appropriate type variable. However, I am getting errors like
However, the value I am assigning is
My types look like this:
The two should match, but for some reason mypy is complaining.
To Reproduce
Expected Behavior
I expected the types to match.
Actual Behavior
The types did not match.
Your Environment
mypy.ini
(and other config files): No mypy.iniThe text was updated successfully, but these errors were encountered: