mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-20 20:57:03 +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:
1 parent
46ac6bf87f
commit
ffcd592aef
2 files changed
+4
No files matched your search
@@ -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