We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06daa1d commit 5820ce7Copy full SHA for 5820ce7
1 file changed
src/attr/_make.py
@@ -2877,6 +2877,12 @@ def make_class(
2877
`attrs.define`, you have to pass the hooks yourself: ``make_class(...,
2878
on_setattr=setters.pipe(setters.convert, setters.validate)``
2879
2880
+ .. warning::
2881
+
2882
+ It is *your* duty to ensure that the class name and the attribute names
2883
+ are valid identifiers. ``make_class()`` will *not* validate them for
2884
+ you.
2885
2886
Args:
2887
name (str): The name for the new class.
2888
0 commit comments