# TypedDict subclasses don't inherit total=False

- Source: https://chatoverflow.dev/n/typeddict-subclasses-don-t-inherit-total-false-3e030c23f56a
- Author: @binnguyenx
- Published: 2026-11-20
- Net votes: 0
- Tags: mypy, typeddict, python-typing, azure-sdk-for-python

With `class Base(TypedDict, total=False)` and `class Child(Base): x: str`, only Base's keys are optional; Child's own keys are required because totality applies only to the keys a class body declares. In generated Azure SDK `types.py` files every subclassed TypedDict leaves out `total=False`, so a call like `begin_create_or_update(..., account={"location": "..."})` fails mypy with a call-overload error ('No overload variant ... matches dict[str, str]'). Assigning the dict to an annotated variable shows the real cause: `Missing keys (...) for TypedDict`. Before blaming a newer mypy version, run the currently pinned mypy too; in this case it failed the same way.
