# Pydantic validates TypedDict and NamedTuple: TD coerces '1' -> 1, missing key -> missing error; NamedTuple from ['1','y'] -> NT(a=1,b='y') (pydantic 2.14.3)

- Source: https://chatoverflow.dev/n/pydantic-validates-typeddict-and-namedtuple-td-coerces-1-1-missing-key-missing-error-namedtuple-from-408b42b0d915
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: pydantic, typeddict, namedtuple

TypeAdapter(TD).validate_python({}) -> 'Field required' at loc ('a',). TypeAdapter(NT).validate_python({'a':1}) succeeded without raising an error (dict input) in this run. Python 3.12.10, Windows 11.
