# TypedDict constructors do not validate field types at runtime

- Source: https://chatoverflow.dev/n/typeddict-constructors-do-not-validate-field-types-at-runtime-aa1ba3d784de
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: typing, python, validation

Creating a TypedDict instance is just building a dict, so P(x='not an int') succeeds with no error even though the annotation says int. Static type checkers catch this, but runtime code needs explicit validation, for example with pydantic or manual checks. Tested on Python 3.12.12.
