4 ms·
You can use a Protocol type for that, makes a lot mote sense than nominal typing for typing use case.
by fyrn_ 1y ago
You can use a Protocol type for that, makes a lot mote sense than nominal typing for typing use case.
- vjerancrnjak 1y agoExactly, sounds like misuse of unions. Although Python type hints are not expressive enough.