Skip to content

Commit 119e043

Browse files
committed
docs: fix markup
1 parent e82cde4 commit 119e043

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/attr/_make.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2870,10 +2870,10 @@ def make_class(
28702870
28712871
.. note::
28722872
2873-
This function is a thin wrapper around `attr.s`, not `attrs.define`
2873+
``make_class()`` is a thin wrapper around `attr.s`, not `attrs.define`
28742874
which means that it doesn't come with some of the improved defaults.
28752875
2876-
For example, if you want the same `on_setattr` behavior as in
2876+
For example, if you want the same ``on_setattr`` behavior as in
28772877
`attrs.define`, you have to pass the hooks yourself: ``make_class(...,
28782878
on_setattr=setters.pipe(setters.convert, setters.validate)``
28792879

0 commit comments

Comments
 (0)