Y
Hacker News
new
|
ask
|
show
|
jobs
by
stratos123
62 days ago
Woah, that's quite an issue. The equivalent code in Python doesn't typecheck, since `list` is invariant and hence list[str] doesn't fit list[str|int]. Unusual for TS to handle types worse than Python.