mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
gh-111999: Add signatures and improve docstrings for builtins (GH-112000)
This commit is contained in:
parent
d0058cbd1c
commit
1d75ef6b61
8 changed files with 74 additions and 39 deletions
|
@ -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\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue