mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Slice attributes can be of any type. (#3024)
This commit is contained in:
committed by
Jelle Zijlstra
parent
4ae4714e00
commit
34b47101dd
@@ -841,13 +841,13 @@ class bool(int):
|
||||
def __getnewargs__(self) -> Tuple[int]: ...
|
||||
|
||||
class slice(object):
|
||||
start: Optional[int]
|
||||
step: Optional[int]
|
||||
stop: Optional[int]
|
||||
start: Any
|
||||
step: Any
|
||||
stop: Any
|
||||
@overload
|
||||
def __init__(self, stop: Optional[int]) -> None: ...
|
||||
def __init__(self, stop: Any) -> None: ...
|
||||
@overload
|
||||
def __init__(self, start: Optional[int], stop: Optional[int], step: Optional[int] = ...) -> None: ...
|
||||
def __init__(self, start: Any, stop: Any, step: Any = ...) -> None: ...
|
||||
def indices(self, len: int) -> Tuple[int, int, int]: ...
|
||||
|
||||
class tuple(Sequence[_T_co], Generic[_T_co]):
|
||||
|
||||
@@ -841,13 +841,13 @@ class bool(int):
|
||||
def __getnewargs__(self) -> Tuple[int]: ...
|
||||
|
||||
class slice(object):
|
||||
start: Optional[int]
|
||||
step: Optional[int]
|
||||
stop: Optional[int]
|
||||
start: Any
|
||||
step: Any
|
||||
stop: Any
|
||||
@overload
|
||||
def __init__(self, stop: Optional[int]) -> None: ...
|
||||
def __init__(self, stop: Any) -> None: ...
|
||||
@overload
|
||||
def __init__(self, start: Optional[int], stop: Optional[int], step: Optional[int] = ...) -> None: ...
|
||||
def __init__(self, start: Any, stop: Any, step: Any = ...) -> None: ...
|
||||
def indices(self, len: int) -> Tuple[int, int, int]: ...
|
||||
|
||||
class tuple(Sequence[_T_co], Generic[_T_co]):
|
||||
|
||||
Reference in New Issue
Block a user