Konubinix' opinionated web of thoughts

Discussing Type Hints, Protocols, and Ducks in Python


It’s said that python protocols are much like golang interfaces, they define a contract that should be fulfilled but there is no mean to declare implementing this contract. Only implementing it is enough to implement this interface.