mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Add a case where zip() can be called with no arguments (#10648)
This commit is contained in:
@@ -1818,6 +1818,8 @@ def vars(__object: Any = ...) -> dict[str, Any]: ...
|
||||
|
||||
class zip(Iterator[_T_co], Generic[_T_co]):
|
||||
if sys.version_info >= (3, 10):
|
||||
@overload
|
||||
def __new__(cls, *, strict: bool = ...) -> zip[Any]: ...
|
||||
@overload
|
||||
def __new__(cls, __iter1: Iterable[_T1], *, strict: bool = ...) -> zip[tuple[_T1]]: ...
|
||||
@overload
|
||||
@@ -1860,6 +1862,8 @@ class zip(Iterator[_T_co], Generic[_T_co]):
|
||||
strict: bool = ...,
|
||||
) -> zip[tuple[Any, ...]]: ...
|
||||
else:
|
||||
@overload
|
||||
def __new__(cls) -> zip[Any]: ...
|
||||
@overload
|
||||
def __new__(cls, __iter1: Iterable[_T1]) -> zip[tuple[_T1]]: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user