Commit 23ea132c authored by Tom Niget's avatar Tom Niget

Fix tuple type instantiation

parent 1e590d39
......@@ -43,7 +43,7 @@ class ScoperExprVisitor(ScoperVisitor):
return res
def visit_Tuple(self, node: ast.Tuple) -> BaseType:
return TupleType([self.visit(e) for e in node.elts])
return TupleType(*[self.visit(e) for e in node.elts])
def visit_Yield(self, node: ast.Yield) -> BaseType:
ytype = self.visit(node.value)
......
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