Aug. 6, 2022
6:05 p.m.
Could you explain a bit more what you mean by "It wouldn't limit **kwargs to whatever's declared in the type"? That is an interesting idea, but I don't think it is realistic. What should be the type of the kwargs parameter inside the function body in that case? Kwargs are a built in dict object. That means that inside the function body kwargs are used like a dict, so they need to support indexing (like kwargs["name"]) and all the methods that dict supports. TypedDict already takes care of that.