Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copy.replace support #1313

Open
layday opened this issue Jul 24, 2024 · 1 comment
Open

copy.replace support #1313

layday opened this issue Jul 24, 2024 · 1 comment
Labels

Comments

@layday
Copy link
Contributor

layday commented Jul 24, 2024

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?

@hynek
Copy link
Member

hynek commented Jul 24, 2024

Yeah, that sounds super cool!

@hynek hynek added the Feature label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants