Python Negatypes › 这有什么用? How is this useful? [#256]

不知道。
No idea.

ABCs 不是作为方法解析顺序的一部分进行检查的,因此你不能使用它来 补丁 ( patch ) 属性。Mypy 无法检查 __subclasshook__。如果你想使用它进行运行时检查,编写函数会比创建 ABC 更简单、更可移植。唯一不同的情况是 单分派 ( single-dispatch ) 函数,它可以在 virtual ABC 上分派。但仅此而已。
ABCs aren’t checked as part of the method resolution order, so you can’t use this to patch in properties. Mypy can’t check __subclasshook__. If you want it for runtime-checks, writing a function would be simpler and more portable than creating an ABC. Just about the only case where there is a difference is with single-dispatch functions, which can dispatch on virtual ABCs. But that’s about it.

但它很酷!
It’s pretty cool, though!