Commit 5e09cc38 authored by Tom Niget's avatar Tom Niget

Skip internal functions

parent 5602938d
......@@ -257,6 +257,7 @@ class ScoperBlockVisitor(ScoperVisitor):
def visit(self, node: ast.AST):
if isinstance(node, ast.AST):
TB_SKIP = True
super().visit(node)
node.scope = self.scope
else:
......
......@@ -36,8 +36,10 @@ class ScoperExprVisitor(ScoperVisitor):
def visit(self, node) -> BaseType:
if existing := getattr(node, "type", None):
return existing.resolve()
TB_SKIP = True
res = super().visit(node)
if not res:
TB_SKIP = False
raise NotImplementedError(f"`{ast.unparse(node)}` {type(node)}")
res = res.resolve()
node.type = res
......
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