fix: validate generic TypedDict state assignments
HA
6h ago+188+188+012345678901234567890123456789-48-48-01234567890123456789
Summary
Closes #7995.
- Validate generic
TypedDictfields against their specialized types in development and check the dictionary shape in production. - Honor postponed required and optional key annotations, and handle inherited type arguments that Python 3.11 can omit.
- Cover standard-library and backport
TypedDictclasses, nested containers, and typed extra items.
Tests
- 652 passed on Python 3.11 and 649 passed on Python 3.14 across the type, field, and state unit suites.
- Verified state assignments in development and production, plus the reported invalid values.
- Ruff formatting, lint, changelog validation, and
git diff --checkpassed.