Skip to content

Commit 7bfc49e

Browse files
committed
Prepare 26.1.0
1 parent 31e0286 commit 7bfc49e

File tree

6 files changed

+21
-6
lines changed

6 files changed

+21
-6
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,27 @@ Changes for the upcoming release can be found in the [`changelog.d` directory](h
1212

1313
<!-- towncrier release notes start -->
1414

15+
## [26.1.0](https://github.com/python-attrs/attrs/tree/26.1.0) - 2026-03-19
16+
17+
### Backwards-incompatible Changes
18+
19+
- Field aliases are now resolved *before* calling `field_transformer`, so transformers receive fully populated `Attribute` objects with usable `alias` values instead of `None`.
20+
The new `Attribute.alias_is_default` flag indicates whether the alias was auto-generated (`True`) or explicitly set by the user (`False`).
21+
[#1509](https://github.com/python-attrs/attrs/issues/1509)
22+
23+
24+
### Changes
25+
26+
- Fix type annotations for `attrs.validators.optional()`, so it no longer rejects tuples with more than one validator.
27+
[#1496](https://github.com/python-attrs/attrs/issues/1496)
28+
- The `attrs.validators.disabled()` contextmanager can now be nested.
29+
[#1513](https://github.com/python-attrs/attrs/issues/1513)
30+
- Frozen classes can set `on_setattr=attrs.setters.NO_OP` in addition to `None`.
31+
[#1515](https://github.com/python-attrs/attrs/issues/1515)
32+
- It's now possible to pass *attrs* **instances** in addition to *attrs* **classes** to `attrs.fields()`.
33+
[#1529](https://github.com/python-attrs/attrs/issues/1529)
34+
35+
1536
## [25.4.0](https://github.com/python-attrs/attrs/tree/25.4.0) - 2025-10-06
1637

1738
### Backwards-incompatible Changes

changelog.d/1496.change.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/1509.breaking.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

changelog.d/1513.change.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/1515.change.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/1529.change.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)