温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有

Incorrect inference for types with `__eq__` and no `__hash__` · Issue #18622 · python/mypy · GitHub

来源:github.com

problem class A: def __eq__(self, o: object, /) -> bool: return self is o reveal_type(A().__hash__) # def () -> builtins.int https://mypy-play.net/?mypy=latest&python=3.13&flags=strict%2Clocal-partial-types&gist=2b23624b…

以上为公开页面信息摘要,完整内容请前往原网站阅读。

前往原网站阅读全文

热门推荐记录