提交 517e0a0d authored 作者: notoraptor's avatar notoraptor

Update EnumType.values_eq_approx().

上级 fbccc528
......@@ -920,7 +920,8 @@ class EnumType(Type, dict):
return a == b
def values_eq_approx(self, a, b):
return float(a) == float(b)
# For an enum, it does not have a meaning to be approx equal.
return self.values_eq(a, b)
pyint_compat_code = """
#if PY_MAJOR_VERSION >= 3
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论