nikaro@jlai.lu to Python@programming.dev · edit-21 year agoType hinting in modern Python: The Protocol classcodebeez.nlexternal-linkmessage-square6fedilinkarrow-up135arrow-down11file-text
arrow-up134arrow-down1external-linkType hinting in modern Python: The Protocol classcodebeez.nlnikaro@jlai.lu to Python@programming.dev · edit-21 year agomessage-square6fedilinkfile-text
minus-squarenikaro@jlai.luOPlinkfedilinkarrow-up1·1 year agoThe difference is that with Protocol you can define which method presence you want to ensure. Like i said: custom vs. generic.
The difference is that with
Protocol
you can define which method presence you want to ensure. Like i said: custom vs. generic.