mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Allow merging dicts of different types (#5520)
This commit is contained in:
committed by
GitHub
parent
725b5ef71b
commit
04d81a8499
@@ -826,9 +826,9 @@ class dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]):
|
||||
__hash__: None # type: ignore
|
||||
if sys.version_info >= (3, 9):
|
||||
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
||||
def __or__(self, __value: Mapping[_KT, _VT]) -> Dict[_KT, _VT]: ...
|
||||
def __ror__(self, __value: Mapping[_KT, _VT]) -> Dict[_KT, _VT]: ...
|
||||
def __ior__(self, __value: Mapping[_KT, _VT]) -> Dict[_KT, _VT]: ...
|
||||
def __or__(self, __value: Mapping[_T1, _T2]) -> Dict[Union[_KT, _T1], Union[_VT, _T2]]: ...
|
||||
def __ror__(self, __value: Mapping[_T1, _T2]) -> Dict[Union[_KT, _T1], Union[_VT, _T2]]: ...
|
||||
def __ior__(self, __value: Mapping[_KT, _VT]) -> Dict[_KT, _VT]: ... # type: ignore
|
||||
|
||||
class set(MutableSet[_T], Generic[_T]):
|
||||
def __init__(self, iterable: Iterable[_T] = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user