8000 Improve tooltips by listing the most common argument pattern first. · python/cpython@ac7b49f · GitHub
[go: up one dir, main page]

Skip to content

Commit ac7b49f

Browse files
committed
Improve tooltips by listing the most common argument pattern first.
1 parent b077f9c commit ac7b49f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6679,8 +6679,8 @@ super_init(PyObject *self, PyObject *args, PyObject *kwds)
66796679
}
66806680

66816681
PyDoc_STRVAR(super_doc,
6682-
"super(type) -> unbound super object\n"
66836682
"super(type, obj) -> bound super object; requires isinstance(obj, type)\n"
6683+
"super(type) -> unbound super object\n"
66846684
"super(type, type2) -> bound super object; requires issubclass(type2, type)\n"
66856685
"Typical use to call a cooperative superclass method:\n"
66866686
"class C(B):\n"

0 commit comments

Comments
 (0)
0