提交 9ad566cf authored 作者: carriepl's avatar carriepl

Merge pull request #2409 from dmitriy-serdyuk/none_comp

Fixed one more possible comparison with None
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论