From 119e043b9fccd995cefb800b00ae4a7645ddb807 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Sun, 15 Dec 2024 15:15:45 +0100 Subject: [PATCH] docs: fix markup --- src/attr/_make.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/attr/_make.py b/src/attr/_make.py index 44197953..f00fec48 100644 --- a/src/attr/_make.py +++ b/src/attr/_make.py @@ -2870,10 +2870,10 @@ def make_class( .. note:: - This function is a thin wrapper around `attr.s`, not `attrs.define` + ``make_class()`` is a thin wrapper around `attr.s`, not `attrs.define` which means that it doesn't come with some of the improved defaults. - For example, if you want the same `on_setattr` behavior as in + For example, if you want the same ``on_setattr`` behavior as in `attrs.define`, you have to pass the hooks yourself: ``make_class(..., on_setattr=setters.pipe(setters.convert, setters.validate)``