Python interfaces: abandon ABC and switch to Protocols
Python interfaces: abandon ABC and switch to Protocols

Python Interfaces: Choose Protocols Over ABC

Python interfaces: abandon ABC and switch to Protocols
Python Interfaces: Choose Protocols Over ABC
I need to move away from using inheritance in my Python. I've been using Rust exclusively for the past year and it's definitely going to affect how I write code in other languages.
"If only I could make this a
trait
..."Yes!