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…
以上为公开页面信息摘要,完整内容请前往原网站阅读。
前往原网站阅读全文热门推荐记录
-
2026-12-04 17:12:34
其他
deps: sync V8 gypfiles with 7.1 · nodejs/node@5620727 · GitHub
Node.js JavaScript runtime ✨🐢🚀✨. Contribute to nodejs/node development by creating an account on GitHub.
-
2026-12-03 20:11:19
其他
raw.githubusercontent.com
raw.githubusercontent.com
-
2026-12-04 14:53:10
其他
IDouble (Alp ₿📈🚀🌕) · GitHub
🗽 Be greedy when others are fearful and be fearful when others are greedy ☕️ Full-Stack 🖥💻📱⌚️ Finance, Crypto ⛓ (Blockch
-
2026-12-04 21:28:49
其他
massagereader/images at main · oliverklee/massagereader · GitHub
Reader zu den Entspannungsmassage-Workshops von Oliver Klee - massagereader/images at main · oliverklee/massagereader
-
2026-12-04 02:24:15
其他
Alberta cities are moving public notices online — at a cost to local newspapers CBC News
Alberta cities are moving public notices online — at a cost to local newspapers CBC News