TIL I can use `|` instead of tuples in isinstance() checks since #Python 3.10.
@hynek I'm having mixed feelings about this. Perhaps Python is getting too sugary.
@nm0i the | sugar is old news in typing (replacement for typing.Union[int, str]) – the interesting part is that it works in isinstance too
CleverLibre Social is an inclusive social instance for open discussion, learning, and community. All cultures welcome. Hate speech and harassment strictly forbidden.
@nm0i the | sugar is old news in typing (replacement for typing.Union[int, str]) – the interesting part is that it works in isinstance too