Rodrigo Girão Serrão: Typing improvements in Python 3.15

Python 3.15 adds extra_items and closed parameters to TypedDict, allowing typed extra values or forbidding extra keys. The excerpt also mentions typing.TypeForm and typing.disjoint_base without explaining them.

Read original (opens in a new tab)
Tags (3)