Please consider the change to explicitly permit fields of TypedDict or NamedTuple to be conditional based on Python version and similar statically-known conditions.
Discuss thread, with agreement from everyone who commented: https://discuss.python.org/t/allowing-typeddict-items-to-be-defined-conditionally-via-statically-known-conditions/102973
Spec / conformance suite PR: python/typing#2263
Please consider the change to explicitly permit fields of TypedDict or NamedTuple to be conditional based on Python version and similar statically-known conditions.
Discuss thread, with agreement from everyone who commented: https://discuss.python.org/t/allowing-typeddict-items-to-be-defined-conditionally-via-statically-known-conditions/102973
Spec / conformance suite PR: python/typing#2263