News for hackers. Stuff that matters.
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.

Re:Interfaces and Protocols in Python by O5vYtytb on Saturday March 20, 2021 @12:16AM (#26520774)
For me, not having the metaclass overhead of abc is a benefit of protocols. Unfortunately you can't mix metaclass types.