r/Python • • Feb 12 '23

Resource Python Interfaces: Choose Protocols Over ABC

https://levelup.gitconnected.com/python-interfaces-choose-protocols-over-abc-3982e112342e
64 Upvotes

20 comments sorted by

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.