summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMark Dickinson <mdickinson@enthought.com>2021-11-06 19:08:44 (GMT)
committerGitHub <noreply@github.com>2021-11-06 19:08:44 (GMT)
commit91275207296c39e495fe118019a757c4ddefede8 (patch)
treeb72b84f9e38430c7f78167917572328414838197 /Objects
parentcc1cbcbb2d75cacc31ff3359d83043bc7bd5a89d (diff)
downloadcpython-91275207296c39e495fe118019a757c4ddefede8.zip
cpython-91275207296c39e495fe118019a757c4ddefede8.tar.gz
cpython-91275207296c39e495fe118019a757c4ddefede8.tar.bz2
bpo-45392: Update the docstring of the 'type' built-in (GH-29439)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 51ec93d..4180a9d 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)