Make functions any and all accept Iterable[object] (#1531)

Previously, they were accepting `Iterable`, which expanded to `Iterable[Any]`.
This commit is contained in:
Svyatoslav Ilinskiy
2017-08-07 18:13:43 -05:00
committed by Jelle Zijlstra
parent c6bb8a7c88
commit 8ac0694056
2 changed files with 4 additions and 4 deletions

View File

@@ -689,8 +689,8 @@ bytes = str
NotImplemented = ... # type: Any
def abs(n: SupportsAbs[_T]) -> _T: ...
def all(i: Iterable) -> bool: ...
def any(i: Iterable) -> bool: ...
def all(i: Iterable[object]) -> bool: ...
def any(i: Iterable[object]) -> bool: ...
def bin(number: int) -> str: ...
def callable(o: object) -> bool: ...
def chr(code: int) -> str: ...

View File

@@ -759,8 +759,8 @@ class property:
NotImplemented = ... # type: Any
def abs(n: SupportsAbs[_T]) -> _T: ...
def all(i: Iterable) -> bool: ...
def any(i: Iterable) -> bool: ...
def all(i: Iterable[object]) -> bool: ...
def any(i: Iterable[object]) -> bool: ...
def ascii(o: object) -> str: ...
def bin(number: int) -> str: ...
def callable(o: object) -> bool: ...