Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3d84558

Browse files
ilevkivskyimypybot
authored andcommitted
Revert dict.__or__ typeshed change
1 parent fa4ba51 commit 3d84558

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

mypy/typeshed/stdlib/builtins.pyi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,13 @@ class dict(MutableMapping[_KT, _VT]):
11421142
def __reversed__(self) -> Iterator[_KT]: ...
11431143
__hash__: ClassVar[None] # type: ignore[assignment]
11441144
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
1145+
@overload
1146+
def __or__(self, value: dict[_KT, _VT], /) -> dict[_KT, _VT]: ...
1147+
@overload
11451148
def __or__(self, value: dict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _T2]: ...
1149+
@overload
1150+
def __ror__(self, value: dict[_KT, _VT], /) -> dict[_KT, _VT]: ...
1151+
@overload
11461152
def __ror__(self, value: dict[_T1, _T2], /) -> dict[_KT | _T1, _VT | _T2]: ...
11471153
# dict.__ior__ should be kept roughly in line with MutableMapping.update()
11481154
@overload # type: ignore[misc]

0 commit comments

Comments
 (0)