From 398a5807a149b099e607f7b9d7e55bc9efd74250 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 8 Feb 2022 14:15:37 +0000 Subject: [PATCH] Return `Self` from `MutableSequence.__iadd__` (#7162) --- stdlib/typing.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/typing.pyi b/stdlib/typing.pyi index 15959d768..943329804 100644 --- a/stdlib/typing.pyi +++ b/stdlib/typing.pyi @@ -366,7 +366,7 @@ class MutableSequence(Sequence[_T], Generic[_T]): def reverse(self) -> None: ... def pop(self, index: int = ...) -> _T: ... def remove(self, value: _T) -> None: ... - def __iadd__(self, x: Iterable[_T]) -> MutableSequence[_T]: ... + def __iadd__(self: Self, x: Iterable[_T]) -> Self: ... class AbstractSet(Collection[_T_co], Generic[_T_co]): @abstractmethod