提交 a1f1dc66 authored 作者: Hengjean's avatar Hengjean

fixed SliceType eq function

上级 12c6df35
......@@ -53,7 +53,7 @@ class SliceType(Type):
return "slice"
def __eq__(self, other):
return type(self) is SliceType and type(other) is SliceType
return type(self) == type(other)
def __hash__(self):
return hashtype(self)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论