19 Apr
2022
19 Apr
'22
1:47 p.m.
Unions do not implement isinstance
Unions do support isinstance since python 3.10 but apparently they do not support pattern matching. This feels like an oversight to me. If unions did support pattern matching, then do you think they would be a sufficient replacement for sealed classes? -Thomas