From 22fb40114201b1a0899e80731b4684d68fb3109e Mon Sep 17 00:00:00 2001 From: Randolf Scholz Date: Mon, 16 Jun 2025 13:33:27 +0200 Subject: [PATCH] remove __or__ overloads --- stdlib/builtins.pyi | 6 ------ 1 file changed, 6 deletions(-) diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index 8de58f1a3d43..afc0deb3fbda 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -1201,13 +1201,7 @@ class dict(MutableMapping[_KT, _VT]): def __reversed__(self) -> Iterator[_KT]: ... __hash__: ClassVar[None] # type: ignore[assignment] def __class_getitem__(cls, item: Any, /) -> GenericAlias: ... - @overload - def __or__(self, value: dict[_KT, _VT], /) -> dict[_KT, _VT]: ... - @overload def __or__(self, value: dict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _T2]: ... - @overload - def __ror__(self, value: dict[_KT, _VT], /) -> dict[_KT, _VT]: ... - @overload def __ror__(self, value: dict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _T2]: ... # dict.__ior__ should be kept roughly in line with MutableMapping.update() @overload # type: ignore[misc]