Y
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
vjerancrnjak
261 days ago
Exactly, sounds like misuse of unions.
Although Python type hints are not expressive enough.
link
Although Python type hints are not expressive enough.