Comment by IgorPartola
1 day ago
Since when can you use data classes for kwargs? There are plenty of times when you should use a dict even if you know the keys.
1 day ago
Since when can you use data classes for kwargs? There are plenty of times when you should use a dict even if you know the keys.
You shouldn't be using kwargs! That is also well known to be bad practice (or it should be anyway).
https://medium.com/codex/stop-using-kwargs-as-method-argumen...
http://ivory.idyll.org/blog/on-kwargs.html
Give me another one.
I’d agree with this, unless the kwargs is typed with the new-ish PEP-692: https://peps.python.org/pep-0692/
lol i think you didn't read/understand this - the article is about **kwargs (which is sometimes sloppy) while the person you're responding to is talking about "exploding" a dict when calling a function (this does not require **kwargs at all).