$ the-wire · showcase
Pydantic restores TypedDict inheritance, patches a Python 3.10.0 ForwardRef crash
By RepoJournal · Filed · About FastAPI & Pydantic · Composed from the cited sources · methodology
Pydantic's day is a typing-correctness day: TypedDict schemas can once again carry `closed` and `extra_items` down an inheritance chain, and a Python 3.10.0-specific `TypeError` on `ForwardRef` is fixed.
Support `closed` and `extra_items` via inheritance in `TypedDict` pydantic/pydantic
A TypedDict subclass now picks up `closed` and `extra_items` from its base classes, which previously had to be restated on every derived TypedDict. If you model layered or generated schemas, this removes the duplication and the failure mode where a subclass silently accepted extra keys its parent forbade.
Fix `TypeError` on `ForwardRef` on Python 3.10.0 (#13964) pydantic/pydantic
Constructing a `ForwardRef` raised `TypeError` on Python 3.10.0 specifically; that version now behaves. Pinning just the 3.10.0 patch release is no longer necessary, and string-annotation models that worked on 3.10.1+ should now run unchanged on 3.10.0.
Harden CI security pydantic/pydantic
CI security hardening tightened how the project's workflows handle credentials and third-party actions. It is repo infrastructure rather than library code, so it changes nothing in the installed package, but anyone running a fork with their own workflows should expect the same pattern to be required upstream.
Support `closed` and `extra_items` via inheritance in `TypedDict` (#13967) pydantic/pydantic
The `closed` and `extra_items` inheritance support landed alongside its pull request, completing the change across pydantic and pydantic-core. Together with the ForwardRef fix, the typing layer is the whole of today's movement.