4 ms·
That's an Optional[int]. It's not "mixed types", it's a union type.
by qwefsdf 4y ago
That's an Optional[int]. It's not "mixed types", it's a union type.
- ris 4y agoThat 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.