提交 752775ca authored 作者: serdyuk's avatar serdyuk

Fixed one more possible comparison with None

上级 e17ba874
...@@ -78,6 +78,8 @@ def _is_dense(x): ...@@ -78,6 +78,8 @@ def _is_dense(x):
def _kmap_eq(a, b): def _kmap_eq(a, b):
if a is None and b is None: if a is None and b is None:
return True return True
if a is None or b is None:
return False
return numpy.all(a == b) return numpy.all(a == b)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论