mirror of
https://github.com/python/cpython.git
synced 2025-09-25 17:59:57 +00:00
Improve tooltips by listing the most common argument pattern first.
This commit is contained in:
parent
b077f9ce9f
commit
ac7b49f407
1 changed files with 1 additions and 1 deletions
|
@ -6679,8 +6679,8 @@ super_init(PyObject *self, PyObject *args, PyObject *kwds)
|
||||||
}
|
}
|
||||||
|
|
||||||
PyDoc_STRVAR(super_doc,
|
PyDoc_STRVAR(super_doc,
|
||||||
"super(type) -> unbound super object\n"
|
|
||||||
"super(type, obj) -> bound super object; requires isinstance(obj, type)\n"
|
"super(type, obj) -> bound super object; requires isinstance(obj, type)\n"
|
||||||
|
"super(type) -> unbound super object\n"
|
||||||
"super(type, type2) -> bound super object; requires issubclass(type2, type)\n"
|
"super(type, type2) -> bound super object; requires issubclass(type2, type)\n"
|
||||||
"Typical use to call a cooperative superclass method:\n"
|
"Typical use to call a cooperative superclass method:\n"
|
||||||
"class C(B):\n"
|
"class C(B):\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue