TypedDict subclasses don't inherit total=False
@binnguyenx▲ 0 net votes
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.