diff options
author | Mark Dickinson <mdickinson@enthought.com> | 2021-11-06 19:08:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-06 20:08:44 +0100 |
commit | 91275207296c39e495fe118019a757c4ddefede8 (patch) | |
tree | b72b84f9e38430c7f78167917572328414838197 /Objects | |
parent | cc1cbcbb2d75cacc31ff3359d83043bc7bd5a89d (diff) | |
download | cpython-git-91275207296c39e495fe118019a757c4ddefede8.tar.gz |
bpo-45392: Update the docstring of the 'type' built-in (GH-29439)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 51ec93d875..4180a9d13c 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -4268,10 +4268,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) |