The _TypedDict class definition in typing.pyi was recently amended to include support for __or__ and __ior__ methods. This implies that | and |= operators should work for TypedDict instances. Pyright currently rejects these.
This is a tracking bug. For the original, see microsoft/pylance-release#2300.
The
_TypedDictclass definition intyping.pyiwas recently amended to include support for__or__and__ior__methods. This implies that|and|=operators should work forTypedDictinstances. Pyright currently rejects these.This is a tracking bug. For the original, see microsoft/pylance-release#2300.