Open inducer opened 2 years ago
From https://github.com/inducer/pytato/pull/371#discussion_r999778468, automaticall populate _fields
.
Out of curiosity, should we now consider moving back to dataclasses
(which would imply Python 3.10+)?
In general, I'm in favor of that. Good reasons to go back:
Obstacles:
cache_hash=True
in attrs, for which dataclasses has no equivalent. We would need to generate our own code for __hash__
. Could be worse, I think.
After merging #365, I noticed a few things I wish I'd flagged, see https://github.com/inducer/pytato/pull/365#pullrequestreview-1147957251. They're not a huge deal, but I think we should address them to avoid setting traps for our future selves.