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 71d2b33 commit 548685eCopy full SHA for 548685e
Doc/reference/datamodel.rst
@@ -1931,7 +1931,8 @@ Preparing the class namespace
1931
Once the appropriate metaclass has been identified, then the class namespace
1932
is prepared. If the metaclass has a ``__prepare__`` attribute, it is called
1933
as ``namespace = metaclass.__prepare__(name, bases, **kwds)`` (where the
1934
-additional keyword arguments, if any, come from the class definition).
+additional keyword arguments, if any, come from the class definition). The
1935
+``__prepare__`` method should be implemented as a :func:`classmethod`.
1936
1937
If the metaclass has no ``__prepare__`` attribute, then the class namespace
1938
is initialised as an empty ordered mapping.
0 commit comments