Improve tooltips by listing the most common argument pattern first.
This commit is contained in:
parent
b077f9ce9f
commit
ac7b49f407
|
@ -6679,8 +6679,8 @@ super_init(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(super_doc,
|
||||
"super(type) -> unbound super object\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"
|
||||
"Typical use to call a cooperative superclass method:\n"
|
||||
"class C(B):\n"
|
||||
|
|
Loading…
Reference in New Issue