
Aug. 29, 2019
7:09 p.m.
What about using `(int, str)` for indicating a `Union`? This doesn't have compatibility issues and it's similar to `isinstance(foo, (int, str))`, so it should be fairly intuitive: def bar(foo: (int, str) = 0): ... Also it's similar to `get_args(Union[int, str])`.