Closed thetorpedodog closed 9 months ago
After talking just now I was looking at the protocol and wondered: Why do we not just say class Slice(Protocol[_T_co]): start: Optional[_T_co] etc.? The Named example protocol in the Python docs uses that syntax.
class Slice(Protocol[_T_co]): start: Optional[_T_co]
Named
Then I tried it and found out why.
After talking just now I was looking at the protocol and wondered: Why do we not just say
class Slice(Protocol[_T_co]): start: Optional[_T_co]
etc.? TheNamed
example protocol in the Python docs uses that syntax.Then I tried it and found out why.