mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-09 06:45:51 +08:00
builtins: Fix typing of reversed (#10655)
This commit is contained in:
1 parent
55dd99a338
commit
c5c2c14db9
2 files changed
+36
-2
No files matched your search
+2
-2
@@ -1634,9 +1634,9 @@ def quit(code: sys._ExitCode = None) -> NoReturn: ...
|
||||
|
||||
class reversed(Iterator[_T]):
|
||||
@overload
|
||||
def __init__(self, __sequence: Reversible[_T]) -> None: ...
|
||||
def __new__(cls, __sequence: Reversible[_T]) -> Iterator[_T]: ... # type: ignore[misc]
|
||||
@overload
|
||||
def __init__(self, __sequence: SupportsLenAndGetItem[_T]) -> None: ...
|
||||
def __new__(cls, __sequence: SupportsLenAndGetItem[_T]) -> Iterator[_T]: ... # type: ignore[misc]
|
||||
def __iter__(self) -> Self: ...
|
||||
def __next__(self) -> _T: ...
|
||||
def __length_hint__(self) -> int: ...
|
||||
|
||||
Reference in new issue
Block a user