mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +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]: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user