Allow nested tuples in isinstance/issubclass (#998)

Fixes #997
This commit is contained in:
=^_^=
2017-03-14 08:04:12 -07:00
committed by Guido van Rossum
parent 43a1f761b2
commit 45f4a1e913
2 changed files with 4 additions and 4 deletions

View File

@@ -773,8 +773,8 @@ def input(prompt: Any = None) -> str: ...
def iter(iterable: Iterable[_T]) -> Iterator[_T]: ...
@overload
def iter(function: Callable[[], _T], sentinel: _T) -> Iterator[_T]: ...
def isinstance(o: object, t: Union[type, Tuple[type, ...]]) -> bool: ...
def issubclass(cls: type, classinfo: Union[type, Tuple[type, ...]]) -> bool: ...
def isinstance(o: object, t: Union[type, Tuple[Union[type, Tuple], ...]]) -> bool: ...
def issubclass(cls: type, classinfo: Union[type, Tuple[Union[type, Tuple], ...]]) -> bool: ...
def len(o: Sized) -> int: ...
def license() -> None: ...
def locals() -> Dict[str, Any]: ...