Conversation
Signed-off-by: Cristian Le <git@lecris.dev>
There was a problem hiding this comment.
Code Review
This pull request includes an import in __init__.py that might be re-exporting a dependency. It's recommended to avoid re-exporting dependencies from __init__.py and instead have modules import their dependencies directly. The import statement also contains a redundant alias that should be simplified if the import is kept.
|
A useful tool, but I'd try to slow this PR down a bit: what's the use case? It turns a dataclass into a dictionary, what's the dictionary for? Because it's really easy to misuse such a dictionary, pass it around, add arbitrary keys at wish, with very little protection. And pass it to places where it has no place. Therefore I was trying to avoid exposing So if you feel you need |
See the
|
I see.
(Yeah, I know I'm making it more complicated when |
That's a fine compromise. I have also been thinking of how |
Splitting this from the work on #4642