Hacker News new | ask | show | jobs
by qwefsdf 1294 days ago
That's an Optional[int]. It's not "mixed types", it's a union type.
1 comments

That is merely a detail of how the typing module has decided to set up convenient aliases. Treated by the language (and likely compilers) as different types.