diff --git a/peps/pep-0827.rst b/peps/pep-0827.rst index 3f596f0a8ce..ea1f36a3744 100644 --- a/peps/pep-0827.rst +++ b/peps/pep-0827.rst @@ -1236,9 +1236,9 @@ We present implementations of a selection of them:: # PartialTD # Like Partial, but for TypedDicts: wraps all fields in NotRequired # rather than making them T | None. - type PartialTD[T] = typing.NewProtocol[ + type PartialTD[T] = typing.NewTypedDict[ *[ - typing.Member[p.name, NotRequired[p.type], p.quals] + typing.Member[p.name, p.type, p.quals | Literal["NotRequired"]] for p in typing.Iter[typing.Attrs[T]] ] ]