commit | ea8fc52e75363276db23c6a8d7a689f79efce4f9 | [log] [tgz] |
---|---|---|
author | Eric V. Smith <ericvsmith@users.noreply.github.com> | Sat Jan 27 19:07:40 2018 -0500 |
committer | GitHub <noreply@github.com> | Sat Jan 27 19:07:40 2018 -0500 |
tree | ca662ba631df1f6e6e32b5b0d95a6b5458d5699c | |
parent | 2a2247ce5e1984eb2f2c41b269b38dbb795a60cf [diff] |
bpo-32513: Make it easier to override dunders in dataclasses. (GH-5366) Class authors no longer need to specify repr=False if they want to provide a custom __repr__ for dataclasses. The same thing applies for the other dunder methods that the dataclass decorator adds. If dataclass finds that a dunder methods is defined in the class, it will not overwrite it.