Commit 431d6b7b authored by Stefan Behnel's avatar Stefan Behnel

Assigning None to memoryviews is allowed, re-enable it.

parent 644b90b6
......@@ -1082,7 +1082,7 @@ class NoneNode(PyConstNode):
return True
def coerce_to(self, dst_type, env):
if not (dst_type.is_pyobject or dst_type.is_error):
if not (dst_type.is_pyobject or dst_type.is_memoryviewslice or dst_type.is_error):
# Catch this error early and loudly.
error(self.pos, "Cannot assign None to %s" % dst_type)
return super(NoneNode, self).coerce_to(dst_type, env)
......
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