mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-24 21:01:52 +08:00
Added support for | operator for combining two TypedDict instances (#5054)
Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
@@ -667,6 +667,8 @@ class _TypedDict(Mapping[str, object], metaclass=ABCMeta):
|
||||
def items(self) -> ItemsView[str, object]: ...
|
||||
def keys(self) -> KeysView[str]: ...
|
||||
def values(self) -> ValuesView[object]: ...
|
||||
def __or__(self: _T, __value: _T) -> _T: ...
|
||||
def __ior__(self: _T, __value: _T) -> _T: ...
|
||||
|
||||
def NewType(name: str, tp: Type[_T]) -> Type[_T]: ...
|
||||
|
||||
|
||||
@@ -118,6 +118,8 @@ typing.SupportsInt.__init__
|
||||
typing.SupportsRound.__init__
|
||||
typing._SpecialForm.__init__
|
||||
typing._TypedDict.__delitem__
|
||||
typing._TypedDict.__ior__
|
||||
typing._TypedDict.__or__
|
||||
typing._TypedDict.copy
|
||||
typing._TypedDict.items
|
||||
typing._TypedDict.keys
|
||||
|
||||
Reference in New Issue
Block a user