Simple module with harmless import cycle results in Cannot determine type
error
#6312
Labels
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
priority-1-normal
topic-import-cycles
topic-usability
To repro (I'm using mypy 0.660):
In
models/__init__.py
:In
models/user.py
:It runs fine:
But mypy fails:
There are two issues here (I'm happy to file another one to track them separately if that helps):
Related issues:
#2015
#2016
#1185
#481
The text was updated successfully, but these errors were encountered: