Skip to content

Commit 6339f88

Browse files
froomzyambv
authored andcommitted
Updated the stub for builtins to change slice to take Optional[int] rather than just straight int.
1 parent 97bd6e3 commit 6339f88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/3/builtins.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ class slice:
472472
start = 0
473473
step = 0
474474
stop = 0
475-
def __init__(self, start: int, stop: int = 0, step: int = 0) -> None: ...
475+
def __init__(self, start: Optional[int], stop: Optional[int] = 0, step: Optional[int] = 0) -> None: ...
476476

477477
class tuple(Sequence[_T_co], Generic[_T_co]):
478478
def __init__(self, iterable: Iterable[_T_co] = ...) -> None: ...

0 commit comments

Comments
 (0)