Commit b64b657a authored by Stefan Behnel's avatar Stefan Behnel

Add comment.

parent f4887a97
......@@ -427,6 +427,8 @@ class SimpleAssignmentTypeInferer(object):
if rhs_type and rhs_type.is_pyobject:
has_pyobjects = True
types.append(rhs_type)
# Ignore None assignments as long as there are concrete Python type assignments.
# but include them if None is the only assigned Python object.
if has_none and not has_pyobjects:
types.append(py_object_type)
return types
......
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