RepoJournal
FastAPI & Pydantic

FastAPI & Pydantic

FastAPI and the Pydantic + SQLModel async-Python stack

Keep up with FastAPI & Pydantic in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Python Full archive →

The Wire · Showcase

PYDANTIC FIXES `field_title_generator` SIGNATURE MISMATCH

By RepoJournal · Filed · About FastAPI & Pydantic

The documented signature for `field_title_generator` was wrong, and developers following the docs would hit a TypeError.

Pydantic's `field_title_generator` callback has been documented across `Field()`, `FieldInfo.from_field()`, `computed_field()`, and `ComputedFieldInfo` as taking only a field name and returning a title [1]. The actual implementation invokes it with two arguments: the field name and its info object [2]. Anyone building a title generator from the docstring docs would pass a single-argument function and crash on runtime. The fix corrects the documented signature to match reality, eliminating the gotcha [2]. This is a small but important correction that prevents confusion during onboarding and saves debugging time in production code.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] Fix documented signature of `field_title_generator` (#13565) pydantic/pydantic
  2. [2] Fix documented signature of `field_title_generator` ↗ pydantic/pydantic

Quick answers

What shipped in FastAPI & Pydantic on August 2, 2026?
The documented signature for `field_title_generator` was wrong, and developers following the docs would hit a TypeError. In total, 1 commits and 1 pull requests landed.
Who contributed to FastAPI & Pydantic on August 2, 2026?
1 developer shipped this update, including Bishwas Bhandari.
What were the notable FastAPI & Pydantic updates?
Fix documented signature of `field_title_generator` (#13565) and Fix documented signature of `field_title_generator`.

More from FastAPI & Pydantic

Daily updates, in your inbox

Follow FastAPI & Pydantic

Keep up with FastAPI & Pydantic in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?