Skip to content

Commit be4bcc2

Browse files
committed
Add signature; Fix test_inspect.test_inspect error
1 parent d00b90e commit be4bcc2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/types.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ Additional Utility Classes and Functions
521521

522522
.. versionadded:: 3.4
523523

524-
.. function:: lookup_special_method(obj, attr)
524+
.. function:: lookup_special_method(obj, attr, /)
525525

526526
Do a method lookup in the type without looking in the instance dictionary
527527
but still binding it to the instance. Returns None if the method is not

Modules/_typesmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ static struct PyModuleDef_Slot _typesmodule_slots[] = {
9090

9191
static PyMethodDef _typesmodule_methods[] = {
9292
{"lookup_special_method", _types_lookup_special_method_impl, METH_VARARGS,
93+
"lookup_special_method(obj, attr, /)\n--\n\n"
9394
"Do a method lookup in the type without looking in the instance "
94-
"dictionary but still binding it to the instance. Returns None if the "
95-
"method is not found."},
95+
"dictionary. Returns None if the method is not found."},
9696
{NULL, NULL, 0, NULL}};
9797

9898
static struct PyModuleDef typesmodule = {

0 commit comments

Comments
 (0)