mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-14 18:27:51 +08:00
Add range attributes (#1561)
This commit is contained in:
1 parent
e8ece8ccce
commit
975c9a09ef
1 file changed
+3
@@ -726,6 +726,9 @@ class enumerate(Iterator[Tuple[int, _T]], Generic[_T]):
|
||||
def __next__(self) -> Tuple[int, _T]: ...
|
||||
|
||||
class range(Sequence[int]):
|
||||
start = ... # type: int
|
||||
stop = ... # type: int
|
||||
step = ... # type: int
|
||||
@overload
|
||||
def __init__(self, stop: int) -> None: ...
|
||||
@overload
|
||||
|
||||
Reference in new issue
Block a user