Skip to content

Commit 9e443b1

Browse files
committed
Prepare 23.2.0
1 parent 41df262 commit 9e443b1

8 files changed

+20
-16
lines changed

CHANGELOG.md

+20-6
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,29 @@ You can find out backwards-compatibility policy [here](https://github.com/python
1010

1111
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.
1212

13-
<!--
14-
Do *NOT* add changelog entries here!
13+
<!-- towncrier release notes start -->
1514

16-
This changelog is managed by towncrier and is compiled at release time.
15+
## [23.2.0](https://github.com/python-attrs/attrs/tree/23.2.0) - 2023-12-31
1716

18-
See https://github.com/python-attrs/attrs/blob/main/.github/CONTRIBUTING.md#changelog for details.
19-
-->
17+
### Changes
2018

21-
<!-- towncrier release notes start -->
19+
- The type annotation for `attrs.resolve_types()` is now correct.
20+
[#1141](https://github.com/python-attrs/attrs/issues/1141)
21+
- Type stubs now use `typing.dataclass_transform` to decorate dataclass-like decorators, instead of the non-standard `__dataclass_transform__` special form, which is only supported by Pyright.
22+
[#1158](https://github.com/python-attrs/attrs/issues/1158)
23+
- Fixed serialization of namedtuple fields using `attrs.asdict/astuple()` with `retain_collection_types=True`.
24+
[#1165](https://github.com/python-attrs/attrs/issues/1165)
25+
- `attrs.AttrsInstance` is now a `typing.Protocol` in both type hints and code.
26+
This allows you to subclass it along with another `Protocol`.
27+
[#1172](https://github.com/python-attrs/attrs/issues/1172)
28+
- If *attrs* detects that `__attrs_pre_init__` accepts more than just `self`, it will call it with the same arguments as `__init__` was called.
29+
This allows you to, for example, pass arguments to `super().__init__()`.
30+
[#1187](https://github.com/python-attrs/attrs/issues/1187)
31+
- Slotted classes now transform `functools.cached_property` decorated methods to support equivalent semantics.
32+
[#1200](https://github.com/python-attrs/attrs/issues/1200)
33+
- Added *class_body* argument to `attrs.make_class()` to provide additional attributes for newly created classes.
34+
It is, for example, now possible to attach methods.
35+
[#1203](https://github.com/python-attrs/attrs/issues/1203)
2236

2337
## [23.1.0](https://github.com/python-attrs/attrs/tree/23.1.0) - 2023-04-16
2438

changelog.d/1141.change.md

-1
This file was deleted.

changelog.d/1158.change.md

-1
This file was deleted.

changelog.d/1165.change.md

-1
This file was deleted.

changelog.d/1172.change.md

-2
This file was deleted.

changelog.d/1187.change.md

-2
This file was deleted.

changelog.d/1200.change.md

-1
This file was deleted.

changelog.d/1203.change.md

-2
This file was deleted.

0 commit comments

Comments
 (0)