I get that if you want to check that a variable x is either class A or class B, you would use a tuple: isinstance(x,(A,B)). But typing.Union ...
確定! 回上一頁