Commit af719a0a authored by Tom Niget's avatar Tom Niget

Ignore typing module in import

parent 77130f16
......@@ -26,6 +26,8 @@ class ScoperBlockVisitor(ScoperVisitor):
self.scope.vars[alias.asname or alias.name] = dataclasses.replace(mod, kind=VarKind.LOCAL)
def visit_ImportFrom(self, node: ast.ImportFrom):
if node.module == "typing":
return
module = self.scope.get(node.module, VarKind.MODULE)
if not module:
raise NameError(node.module)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment