Skip to content

Commit 4b6b484

Browse files
sproshevJelleZijlstra
authored andcommitted
Add clear method to MutableSequence in Python 3 (#1765)
1 parent 8404a62 commit 4b6b484

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/3/typing.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ class MutableSequence(Sequence[_T], Generic[_T]):
260260
def __delitem__(self, i: slice) -> None: ...
261261
# Mixin methods
262262
def append(self, object: _T) -> None: ...
263+
def clear(self) -> None: ...
263264
def extend(self, iterable: Iterable[_T]) -> None: ...
264265
def reverse(self) -> None: ...
265266
def pop(self, index: int = ...) -> _T: ...

0 commit comments

Comments
 (0)