From 836a5a6a3e7b9529f1a6a0e71aa31d3df6edc7ce Mon Sep 17 00:00:00 2001 From: Randolf Scholz Date: Mon, 16 Jun 2025 12:41:40 +0200 Subject: [PATCH] test without __add__ overload --- stdlib/builtins.pyi | 4 ---- 1 file changed, 4 deletions(-) diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index 8de58f1a3d43..1dc7742276be 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -1115,10 +1115,6 @@ class list(MutableSequence[_T]): @overload def __setitem__(self, key: slice, value: Iterable[_T], /) -> None: ... def __delitem__(self, key: SupportsIndex | slice, /) -> None: ... - # Overloading looks unnecessary, but is needed to work around complex mypy problems - @overload - def __add__(self, value: list[_T], /) -> list[_T]: ... - @overload def __add__(self, value: list[_S], /) -> list[_S | _T]: ... def __iadd__(self, value: Iterable[_T], /) -> Self: ... # type: ignore[misc] def __mul__(self, value: SupportsIndex, /) -> list[_T]: ...