attrs icon indicating copy to clipboard operation
attrs copied to clipboard

`copy.replace` support

Open layday opened this issue 1 year ago • 1 comments

Python 3.13 introduced the __replace__ dunder, exposed via copy.replace, as a generalised method through which to replace fields in immutable dataclass-likes. Would you be interested in supporting it in addition to attrs' own evolve?

layday avatar Jul 24 '24 08:07 layday

Yeah, that sounds super cool!

hynek avatar Jul 24 '24 08:07 hynek