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
QOTO: Question Others to Teach Ourselves An inclusive, Academic Freedom, instance 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