Added support for | operator for combining two TypedDict instances (#5054)

Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
Eric Traut
2021-02-23 02:04:31 -07:00
committed by GitHub
parent 46ac6bf87f
commit ffcd592aef
2 changed files with 4 additions and 0 deletions

View File

@@ -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]: ...