Ejemplo:
from typing import TypedDict class MyType(TypedDict): a: int b: int t = MyType(a=1, b=2) t.update(b=3) mypy toy.py se queja
toy.py:9:1: error: Unexpected keyword argument "b" for "update" of "TypedDict" Found 1 error in 1 file (checked 1 source file)Parece que este es un problema abierto conocido para mypy : https://github.com/python/mypy/issues/6019
Por ahora, si desea que mypy no lo moleste con este error, deberá indicarle que lo ignore:
t.update(b=3) # type: ignore[call-arg]