diff --git a/stdlib/typing.pyi b/stdlib/typing.pyi index a2ed53cf9..6979f03eb 100644 --- a/stdlib/typing.pyi +++ b/stdlib/typing.pyi @@ -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]: ... diff --git a/tests/stubtest_whitelists/py39.txt b/tests/stubtest_whitelists/py39.txt index 9f4afe54d..9e57bb608 100644 --- a/tests/stubtest_whitelists/py39.txt +++ b/tests/stubtest_whitelists/py39.txt @@ -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