I've noticed while upgrading our code to v2 that we had big slowdowns within our test suites. And I narrowed it down to our numerous calls to isinstance checks. Turns out that isinstance for a ...
from typing import Union def f(x : Union[int, float]): if isinstance(x, float): print("b", x) elif isinstance(x, int): print("a", x) with --warn-unreachable returns ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results