mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
2ac10affe5
* Allow ellipsis on Fields within annotated types The usecase is TypedDicts, which can't have default values otherwise. Meaning that adding Optionals to Annotated drops them from the list of required fields, which the patch fixes. * Add test for TypedDict required optionals Clarifies what's required with TypedDicts schemas. * Add description of changes * PR feedback * extra tests as requested Co-authored-by: Samuel Colvin <s@muelcolvin.com>
73 B
73 B
Allow ellipsis on Fields inside Annotated for TypedDicts required.