Conversation
|
The one possible issue I see with this is if people are using these as A work around for that would be to add a method like this. But not sure... If we did that I would think to add a deprecation warning to tell people to use attribute access. |
I wouldn't bother with this because:
Let's not clutter things up if we don't need to. |
|
I'm ok with this PR as it is although it has made me notice all the |
|
I should have also said that I like the overall change to dataclass. It's much more readable. |
A `dataclass` is nicer than a `namedtuple`. Makes it is easy to add type-hints and also they have the added flexibility to customize things if desired.
e5ebbb1 to
d677574
Compare
I cleaned those up just now to make less of them. But they are needed unless want the |
|
@mjs Let me know if there is anything you want me to change. Thanks. |
|
Thanks for this. Merging... |
A
dataclassis nicer than anamedtuple. Makes it is easy to add type-hints and also they have the added flexibility to customize things if desired.