2 ms·
Protocols, too (they are defined on top of ABCs) https://typing.python.org/en/latest/spec/protocol.html#protocols https://typing.python.org/en/latest/spec/prot
by dragonwriter 2y ago
Protocols, too (they are defined on top of ABCs)
https://typing.python.org/en/latest/spec/protocol.html#protocols https://typing.python.org/en/latest/spec/protocol.html#proto...
- gpderetta 2y agoProtocols are definitely the closest thing to traits in Python. ABC are pretty much OoO interfaces.