mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
bpo-45392: Update the docstring of the 'type' built-in (GH-29439) (GH-29452)
(cherry picked from commit 9127520729
)
Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
This commit is contained in:
parent
8fdf6c64d3
commit
045f205ba4
2 changed files with 3 additions and 3 deletions
|
@ -4221,10 +4221,8 @@ static PyMethodDef type_methods[] = {
|
|||
};
|
||||
|
||||
PyDoc_STRVAR(type_doc,
|
||||
/* this text signature cannot be accurate yet. will fix. --larry */
|
||||
"type(object_or_name, bases, dict)\n"
|
||||
"type(object) -> the object's type\n"
|
||||
"type(name, bases, dict) -> a new type");
|
||||
"type(name, bases, dict, **kwds) -> a new type");
|
||||
|
||||
static int
|
||||
type_traverse(PyTypeObject *type, visitproc visit, void *arg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue