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.
a.py:23: error: Incompatible return value type (got "object", expected "Mapping[str, int]")
What is the behavior/output you expect?
No error.
Interestingly, there is no error if empty_mapping returns Mapping[str, V] (or Mapping[str, int]), but there is still an error if it returns Mapping[K, int].
What are the versions of mypy and Python you are using?
Do you see the same issue after installing mypy from Git master?
mypy --version is mypy 0.740+dev.222b14d904a0e359bec934fd81d67d981abdada4 python --version is Python 3.7.4
What are the mypy flags you are using? (For example --strict-optional)
None
The text was updated successfully, but these errors were encountered:
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.
a.py:23: error: Incompatible return value type (got "object", expected "Mapping[str, int]")
No error.
Interestingly, there is no error if
empty_mapping
returnsMapping[str, V]
(orMapping[str, int]
), but there is still an error if it returnsMapping[K, int]
.Do you see the same issue after installing mypy from Git master?
mypy --version
ismypy 0.740+dev.222b14d904a0e359bec934fd81d67d981abdada4
python --version
isPython 3.7.4
None
The text was updated successfully, but these errors were encountered: