提交 a4cb2200 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Fix signature of `__hash__`

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