提交 196512e9 authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Brandon T. Willard

Fix MyType2.__eq__

上级 0c4f1f05
...@@ -27,7 +27,7 @@ class MyType2(Type): ...@@ -27,7 +27,7 @@ class MyType2(Type):
return data return data
def __eq__(self, other): def __eq__(self, other):
return isinstance(other, MyType) return isinstance(other, MyType2)
def __hash__(self): def __hash__(self):
return hash(MyType) return hash(MyType)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论