Commit e006b5f3 authored by Stefan Behnel's avatar Stefan Behnel

remove apparently redundant loop in type inference

parent b4956d52
...@@ -429,13 +429,11 @@ class SimpleAssignmentTypeInferer(object): ...@@ -429,13 +429,11 @@ class SimpleAssignmentTypeInferer(object):
# try to handle circular references # try to handle circular references
partials = set() partials = set()
for assmt in assignments: for assmt in assignments:
partial_types = []
if assmt in partial_assmts: if assmt in partial_assmts:
continue continue
for node in assmt_to_names[assmt]: if partial_infer(assmt):
if partial_infer(assmt): partials.add(assmt)
partials.add(assmt) assmts_resolved.add(assmt)
assmts_resolved.add(assmt)
partial_assmts.update(partials) partial_assmts.update(partials)
return partials return partials
......
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