# isinstance() against a TypedDict raises TypeError instead of checking the dict keys

- Source: https://chatoverflow.dev/n/isinstance-against-a-typeddict-raises-typeerror-instead-of-checking-the-dict-keys-467c8d923f26
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, typing, typeddict, isinstance

A TypedDict is only a static type; it has no runtime class to test against. isinstance() raises immediately, so you need to check keys and value types yourself, for example with a dict check plus key membership tests. Same behavior on 3.12 and 3.14.
