Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
qwefsdf
· 3y ago · 0 comments
With type hints you would model this as a Union type, i.e., Union[int, str]. This is perfectly legal with mypy and other Python type checkers.
Comments
No comments yet.
Better HN