We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64c8ca0 commit 4c2e383Copy full SHA for 4c2e383
mypy/fastparse.py
@@ -651,7 +651,7 @@ def visit_Import(self, n: ast3.Import) -> Import:
651
def visit_ImportFrom(self, n: ast3.ImportFrom) -> ImportBase:
652
assert n.level is not None
653
if len(n.names) == 1 and n.names[0].name == '*':
654
- assert n.module is not None
+ assert n.module is not ''
655
i = ImportAll(n.module, n.level) # type: ImportBase
656
else:
657
i = ImportFrom(self.translate_module_id(n.module) if n.module is not None else '',
0 commit comments