You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+48-6
Original file line number
Diff line number
Diff line change
@@ -18,15 +18,57 @@ Whenever there is a need to break compatibility, it is announced here in the cha
18
18
19
19
Changes for the upcoming release can be found in the ["changelog.d" directory](https://github.com/python-attrs/attrs/tree/main/changelog.d) in our repository.
20
20
21
-
<!--
22
-
Do *NOT* add changelog entries here!
21
+
<!-- towncrier release notes start -->
23
22
24
-
This changelog is managed by towncrier and is compiled at release time.
-`attrs.field()` now supports an *alias* option for explicit `__init__` argument names.
40
+
41
+
Get `__init__` signatures matching any taste, peculiar or plain!
42
+
The [PEP 681 compatible](https://peps.python.org/pep-0681/#field-specifier-parameters)*alias* option can be use to override private attribute name mangling, or add other arbitrary field argument name overrides.
-`attrs.NOTHING` is now an enum value, making it possible to use with e.g. [`typing.Literal`](https://docs.python.org/3/library/typing.html#typing.Literal).
- On Python 3.10 and later, call [`abc.update_abstractmethods()`](https://docs.python.org/3/library/abc.html#abc.update_abstractmethods) on dict classes after creation.
- Added `attrs.validators.not_(wrapped_validator)` to logically invert *wrapped_validator* by accepting only values where *wrapped_validator* rejects the value with a `ValueError` or `TypeError` (by default, exception types configurable).
0 commit comments