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
Fixes#2315Fixes#2172
There were reported some crashes of mypy when using import * and type aliases (only two above issues seem to be still open, others are closed as duplicates).
It looks like this is because visit_import_all in semanal.py does not copy type_override for imported nodes (visit_import_from does, so that the crashes reported happen only with import *).
I added few tests based on (extended) examples discussed in bug reports. Since the reason is clear and the fix is straightforward (one line) I think more sophisticated tests are not required.
0 commit comments