def f(x: Union[int, str, List, Tuple]) -> None: if isinstance(x, (str, (int, tuple))): print(x[1]) results in error: Argument 2 to "isinstance" has incompatible type ...
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin NUMPY INSTALLED WITH PIP: Downloading/unpacking numpy from https://pypi.python.org/packages/source/n ...