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
{{ message }}
Repository navigation
Legal Python circular imports result in loss of type information #4429
But mypy loses the type information for test.a in the context of b.py
$ mypy test/__init__.py test/a.py test/b.py
test/b.py:7: error: Revealed type is 'Any'
test/__init__.py:7: error: Revealed type is 'builtins.int'
What's odd is if I reorder the files to explicitly pass in b.py first, things work -
$ mypy test/b.py test/a.py test/__init__.py
test/__init__.py:7: error: Revealed type is 'builtins.int'
test/b.py:7: error: Revealed type is 'builtins.int'
Activity
Also fix #4429
Fix issues related to indirect imports in import cycles (#4695)
Fix issues related to indirect imports in import cycles (python#4695)