Hacker News new | past | comments | ask | show | jobs | submit login

That's an Optional[int]. It's not "mixed types", it's a union type.



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: