You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, would it be possible to combine @DataClass and @dataslots into one decorator? It seems redundant in a lot of cases to have two stacked decorators, and having to add the extra import from dataclasses import dataclass line in these files.
Thanks!
The text was updated successfully, but these errors were encountered:
but this could be problematic in the future because of conflict of argument names, it blocks adding kwargs to dataslots if needed and there's no help from IDE with arguments to dataclass. It's also less intuitive for users imho.
You can easily add combined decorator to your code. If you don't need any parameters to dataclass and dataslots you can even add to your code something like:
Hi, would it be possible to combine @DataClass and @dataslots into one decorator? It seems redundant in a lot of cases to have two stacked decorators, and having to add the extra import
from dataclasses import dataclass
line in these files.Thanks!
The text was updated successfully, but these errors were encountered: