If a.py contains
import b
name = 'a'
print(b.name)
and b.py contains
import a
name = 'b'
print(a.name)
then mypy compiles a.py without error, but the generated python throws an error because of the circular import.
(Found this one while refactoring mypy itself into packages)
If
a.pycontainsand
b.pycontainsthen mypy compiles
a.pywithout error, but the generated python throws an error because of the circular import.(Found this one while refactoring mypy itself into packages)