alcinnz boosted Sergi @sergi@floss.social · activity timestamp 2 months ago 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 Quote (pending approval) Like More actions Copy link Flag this post Block
Sergi @sergi@floss.social · activity timestamp 2 months ago 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 Quote (pending approval) Like More actions Copy link Flag this post Block