mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03: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
|
|
@ -5254,8 +5254,10 @@ static PyMethodDef type_methods[] = {
|
|||
TYPE___SUBCLASSES___METHODDEF
|
||||
{"__prepare__", _PyCFunction_CAST(type_prepare),
|
||||
METH_FASTCALL | METH_KEYWORDS | METH_CLASS,
|
||||
PyDoc_STR("__prepare__() -> dict\n"
|
||||
"used to create the namespace for the class statement")},
|
||||
PyDoc_STR("__prepare__($cls, name, bases, /, **kwds)\n"
|
||||
"--\n"
|
||||
"\n"
|
||||
"Create the namespace for the class statement")},
|
||||
TYPE___INSTANCECHECK___METHODDEF
|
||||
TYPE___SUBCLASSCHECK___METHODDEF
|
||||
TYPE___DIR___METHODDEF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue