gh-111999: Add signatures and improve docstrings for builtins (GH-112000)

This commit is contained in:
Serhiy Storchaka 2023-11-13 09:13:49 +02:00 committed by GitHub
parent d0058cbd1c
commit 1d75ef6b61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 74 additions and 39 deletions

View file

@ -1164,7 +1164,8 @@ cm_repr(classmethod *cm)
}
PyDoc_STRVAR(classmethod_doc,
"classmethod(function) -> method\n\
"classmethod(function, /)\n\
--\n\
\n\
Convert a function to be a class method.\n\
\n\
@ -1359,7 +1360,8 @@ sm_repr(staticmethod *sm)
}
PyDoc_STRVAR(staticmethod_doc,
"staticmethod(function) -> method\n\
"staticmethod(function, /)\n\
--\n\
\n\
Convert a function to be a static method.\n\
\n\