From 598494a618410490cfbe0c896b7a544f6d23e0d9 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Mon, 16 Dec 2024 07:26:35 +0100 Subject: [PATCH] Prepare 24.3.0 --- CHANGELOG.md | 23 +++++++++++++++++++++++ changelog.d/1340.breaking.md | 1 - changelog.d/1358.change.md | 1 - changelog.d/1365.change.md | 1 - changelog.d/1372.change.md | 1 - changelog.d/1383.change.md | 1 - changelog.d/1385.change.md | 2 -- 7 files changed, 23 insertions(+), 7 deletions(-) delete mode 100644 changelog.d/1340.breaking.md delete mode 100644 changelog.d/1358.change.md delete mode 100644 changelog.d/1365.change.md delete mode 100644 changelog.d/1372.change.md delete mode 100644 changelog.d/1383.change.md delete mode 100644 changelog.d/1385.change.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 184a3843f..9ac56cda4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,29 @@ Changes for the upcoming release can be found in the [`changelog.d` directory](h +## [24.3.0](https://github.com/python-attrs/attrs/tree/24.3.0) - 2024-12-16 + +### Backwards-incompatible Changes + +- Python 3.7 has been dropped. + [#1340](https://github.com/python-attrs/attrs/issues/1340) + + +### Changes + +- Introduce `attrs.NothingType`, for annotating types consistent with `attrs.NOTHING`. + [#1358](https://github.com/python-attrs/attrs/issues/1358) +- Allow mutating `__suppress_context__` and `__notes__` on frozen exceptions. + [#1365](https://github.com/python-attrs/attrs/issues/1365) +- `attrs.converters.optional()` works again when taking `attrs.converters.pipe()` or another Converter as its argument. + [#1372](https://github.com/python-attrs/attrs/issues/1372) +- *attrs* instances now support [`copy.replace()`](https://docs.python.org/3/library/copy.html#copy.replace). + [#1383](https://github.com/python-attrs/attrs/issues/1383) +- `attrs.validators.instance_of()`'s type hints now allow for union types. + For example: `instance_of(str | int)` + [#1385](https://github.com/python-attrs/attrs/issues/1385) + + ## [24.2.0](https://github.com/python-attrs/attrs/tree/24.2.0) - 2024-08-06 ### Deprecations diff --git a/changelog.d/1340.breaking.md b/changelog.d/1340.breaking.md deleted file mode 100644 index ff19e59e9..000000000 --- a/changelog.d/1340.breaking.md +++ /dev/null @@ -1 +0,0 @@ -Python 3.7 has been dropped. diff --git a/changelog.d/1358.change.md b/changelog.d/1358.change.md deleted file mode 100644 index 6d9a009ff..000000000 --- a/changelog.d/1358.change.md +++ /dev/null @@ -1 +0,0 @@ -Introduce `attrs.NothingType`, for annotating types consistent with `attrs.NOTHING`. diff --git a/changelog.d/1365.change.md b/changelog.d/1365.change.md deleted file mode 100644 index 24fa6cf87..000000000 --- a/changelog.d/1365.change.md +++ /dev/null @@ -1 +0,0 @@ -Allow mutating `__suppress_context__` and `__notes__` on frozen exceptions. diff --git a/changelog.d/1372.change.md b/changelog.d/1372.change.md deleted file mode 100644 index fcb94345b..000000000 --- a/changelog.d/1372.change.md +++ /dev/null @@ -1 +0,0 @@ -`attrs.converters.optional()` works again when taking `attrs.converters.pipe()` or another Converter as its argument. diff --git a/changelog.d/1383.change.md b/changelog.d/1383.change.md deleted file mode 100644 index dbc6348e8..000000000 --- a/changelog.d/1383.change.md +++ /dev/null @@ -1 +0,0 @@ -*attrs* instances now support [`copy.replace()`](https://docs.python.org/3/library/copy.html#copy.replace). diff --git a/changelog.d/1385.change.md b/changelog.d/1385.change.md deleted file mode 100644 index cccfe5243..000000000 --- a/changelog.d/1385.change.md +++ /dev/null @@ -1,2 +0,0 @@ -`attrs.validators.instance_of()`'s type hints now allow for union types. -For example: `instance_of(str | int)`