`isinstance(x, A) or isinstance(x, B)` -> `isinstance(x, (A, B))`