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
The expected output is for mypy to typecheck this without error, but instead it reports the following:
test.py:6: error: Invalid type "test.Bar"
test.py: note: In function "produce":
test.py:7: error: Invalid type "test.Bar"
As a side-note, I did some brief testing and it seems this error only happens when you use Bar where a type is expected. Mypy is perfectly happy with the following program, for example:
Consider the following test case:
The expected output is for mypy to typecheck this without error, but instead it reports the following:
As a side-note, I did some brief testing and it seems this error only happens when you use
Bar
where a type is expected. Mypy is perfectly happy with the following program, for example:The text was updated successfully, but these errors were encountered: