Hacker News new | ask | show | jobs
by fyrn_ 261 days ago
You can use a Protocol type for that, makes a lot mote sense than nominal typing for typing use case.
1 comments

Exactly, sounds like misuse of unions.

Although Python type hints are not expressive enough.