Re:Interfaces and Protocols in Python
by harpiaharpyja on Friday March 19, 2021 @11:39PM
(#26520634)
Or you can use an ABC with no implementation logic. I don't agree with the author quickly dismissing them at the beginning. They seem like a relevant solution to when you want nominal typing instead of structural.
Yes, they can contain implementation logic. They don't have to though.
Yes, they can contain implementation logic. They don't have to though.