/2021-protocol-vs-abc

Protocols vs ABC - which one should you use when?

Primary LanguagePythonMIT LicenseMIT

Protocol Or ABC In Python - When to use which one?

When should you use protocol classes vs abstract base classes? Here's an example where I use both, talk about the trade-offs and give you a suggestion of when to use each of them.

This is the link to the corresponding video on YouTube: https://youtu.be/xvb5hGLoK0A.