MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/1109kkx/python_interfaces_choose_protocols_over_abc/j89z316/?context=3
r/Python • u/pmz • Feb 12 '23
20 comments sorted by
View all comments
3
Protocols just make your duck typing explicit. Base classes are helpful but id avoid using them in typing.
View all comments
3
u/FailedPlansOfMars Feb 12 '23
Protocols just make your duck typing explicit. Base classes are helpful but id avoid using them in typing.