-
-
Notifications
You must be signed in to change notification settings - Fork 384
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
Labels
Comments
Yeah, that sounds super cool! |
4 tasks
hynek
added a commit
that referenced
this issue
Dec 14, 2024
hynek
added a commit
that referenced
this issue
Dec 14, 2024
github-merge-queue bot
pushed a commit
that referenced
this issue
Dec 14, 2024
* Implement __replace__ on 3.13 Fixes #1313 * Add newsfragment Add news fragment * fix markup * Add pro-tip * Explicit autodoc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Python 3.13 introduced the
__replace__
dunder, exposed viacopy.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' ownevolve
?The text was updated successfully, but these errors were encountered: