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

Raise a deprecation warning when evolve receives insta as a kw arg #1117

Merged
merged 10 commits into from Apr 5, 2023
4 changes: 2 additions & 2 deletions changelog.d/1117.change.md
@@ -1,3 +1,3 @@
Passing the instance to `attrs.evolve()` (and `attr.evolve()`) using a keyword argument is now deprecated and will be removed in, or after, April 2024.
It is now possible for `attrs.evolve()` (and `attr.evolve()`) to change fields named `inst` if the instance is passed as a positional argument.
hynek marked this conversation as resolved.
Show resolved Hide resolved

This makes it possible to change a field named `inst`.
Passing the instance using the `inst` keyword argument is now deprecated and will be removed in, or after, April 2024.