Commit 1be7d50a authored by Tom Niget's avatar Tom Niget

Skip internal functions

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