From 6e67abe1427ee087641beb4089abcaba0da58f29 Mon Sep 17 00:00:00 2001 From: Aaron <29749331+aarnphm@users.noreply.github.com> Date: Fri, 17 Nov 2023 07:26:37 -0500 Subject: [PATCH] Update changelog Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> --- changelog.d/1203.feature.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog.d/1203.feature.md b/changelog.d/1203.feature.md index 0f9e44e88..5c95df596 100644 --- a/changelog.d/1203.feature.md +++ b/changelog.d/1203.feature.md @@ -1,4 +1,4 @@ -Added `namespaces` to `attr.make_class` to provide additional attributes +Added `class_body` to `attr.make_class` to provide additional attributes for newly created class ```python @@ -11,7 +11,7 @@ class A: def new_echo(cls, *something: int) -> tuple[int, ...]: return something -B = attr.make_class("B", bases=(A,), namespaces={"echo": classmethod(new_echo)}) +B = attr.make_class("B", bases=(A,), class_body={"echo": classmethod(new_echo)}) B.echo(1, 2, 3) ```