Commit 02527c92 authored by Tom Niget's avatar Tom Niget

Ignore typing module in import

parent 6a0a2d10
......@@ -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