Simplify PY3 len() spec, no Union with tuple needed.

This commit is contained in:
Guido van Rossum
2016-01-06 16:34:53 -08:00
parent 0eac99679c
commit 9aabb149e3

View File

@@ -645,7 +645,7 @@ def isinstance(o: object, t: Union[type, Tuple[type, ...]]) -> bool: ...
def issubclass(cls: type, classinfo: type) -> bool: ...
# TODO support this
#def issubclass(type cld, classinfo: Sequence[type]) -> bool: ...
def len(o: Union[Sized, tuple]) -> int: ...
def len(o: Sized) -> int: ...
def license() -> None: ...
def locals() -> Dict[str, Any]: ...
@overload