mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-30 08:04:24 +08:00
PEP 584: add or operators to dict (#4671)
Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -1053,6 +1053,8 @@ 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 __ior__(self, __value: Mapping[_KT, _VT]) -> Dict[_KT, _VT]: ...
|
||||
|
||||
class set(MutableSet[_T], Generic[_T]):
|
||||
def __init__(self, iterable: Iterable[_T] = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user