$ the-wire ยท showcase
Pydantic fixes GC tracking in pydantic-core and caches UTC TzInfo
By RepoJournal ยท Filed ยท About FastAPI & Pydantic ยท Composed from the cited sources ยท methodology
Pydantic closed out a batch of correctness fixes in pydantic-core, covering garbage collection tracking, UTC timezone construction, and schema generation, while FastAPI's day was entirely documentation translation.
Fix more issues about GC tracking in `pydantic-core` pydantic/pydantic
A follow-up to earlier GC tracking work in pydantic-core, marked as missed from that pass and fixing the referenced issue. Cycles involving pydantic-core objects are the kind of leak that only shows up under sustained load, so this is worth taking on your next pydantic bump.
Cache UTC `TzInfo` instance pydantic/pydantic
Pydantic now caches the UTC TzInfo instance, matching what CPython does; the author notes only UTC is cached and "We could expand in the future." Every UTC-aware timestamp that used to allocate a fresh tzinfo now reuses one, which matters for tight parsing and serialization loops.
Exclude `InitVar` fields from the serialization JSON schema pydantic/pydantic
Dataclass InitVar fields are passed to __post_init__ and never serialized, but the serialization JSON schema still listed them as required properties. They are now excluded, so generators built from that schema no longer demand a field that never appears in the dumped output.
Fix validation constraints leaking into the `Decimal` JSON Schema (#14254) pydantic/pydantic
Validation constraints no longer leak into the JSON Schema generated for Decimal fields, so the schema now describes what the model actually serializes rather than echoing constraints from the validation side.
๐ Update Korean translations to match the English docs fastapi/fastapi
The rest of the day was documentation: tiangolo brought the Korean translations in line with the English docs, with further Korean, Portuguese, and Russian translation updates following behind.