docs: fix markup

This commit is contained in:
Hynek Schlawack 2024-12-15 15:15:45 +01:00
parent e82cde4c25
commit 119e043b9f
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -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)``