4 ms·
In my experience it's generally because Python developers make functions with an insane number of keyword arguments, and then wrap those functions. They don't w
by IshKebab 3y ago
In my experience it's generally because Python developers make functions with an insane number of keyword arguments, and then wrap those functions. They don't want to type them all out again so they use kwargs.
subprocess.run() is an example of that. Also check out the functions in manim.
The inability to properly static type kwargs using TypedDict is probably the biggest flaw in Python's type hint system (after the fact that hardly anyone uses it of course).