Slice attributes can be of any type. (#3024)

This commit is contained in:
Brandt Bucher
2019-07-11 12:13:32 -07:00
committed by Jelle Zijlstra
parent 4ae4714e00
commit 34b47101dd
2 changed files with 10 additions and 10 deletions

View File

@@ -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]):

View File

@@ -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]):