Y
Hacker News
new
|
ask
|
show
|
jobs
by
manfre
1594 days ago
The type annotation `Optional[Tuple[int, int]]` is the equivalent to `None | Tuple[int, int]`. `Tuple[Optional[int], Optional[int]]` is what you wanted.