Commit da22f5a8 authored by Tom Niget's avatar Tom Niget

Remove unneeded unification

parent 8e1baff7
...@@ -54,7 +54,6 @@ class ScoperBlockVisitor(ScoperVisitor): ...@@ -54,7 +54,6 @@ class ScoperBlockVisitor(ScoperVisitor):
target = node.targets[0] target = node.targets[0]
ty = self.get_type(node.value) ty = self.get_type(node.value)
node.is_declare = self.visit_assign_target(target, ty) node.is_declare = self.visit_assign_target(target, ty)
target.type.unify(ty)
def visit_assign_target(self, target, decl_val: BaseType) -> bool: def visit_assign_target(self, target, decl_val: BaseType) -> bool:
if isinstance(target, ast.Name): if isinstance(target, ast.Name):
......
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