alcinnz boosted Sergi @sergi@floss.social · activity timestamp last week When using Protocol on Python, do you subclass from it?Do you decorate the Protocol methods with abstractmethod?I've seen different implementations for the questions above, and they all work, and I'm not sure of the benefits of doing it one way or another. #Python #protocol #typing Read more Read less Reply Boost Like More actions Copy link Flag this post Block
Sergi @sergi@floss.social · activity timestamp last week When using Protocol on Python, do you subclass from it?Do you decorate the Protocol methods with abstractmethod?I've seen different implementations for the questions above, and they all work, and I'm not sure of the benefits of doing it one way or another. #Python #protocol #typing Read more Read less Reply Boost Like More actions Copy link Flag this post Block