from typing import Unpack from typing import TypedDict class D(TypedDict): x: int def f(**kwargs: Unpack[D]) -> None: pass