Skip to content

Commit dd804d2

Browse files
committed
Make the implementation more debuggable
1 parent ab7d78c commit dd804d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/functools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ def __call__(self, /, *args, **kwargs):
11031103
if hasattr(method, "__get__"):
11041104
method = method.__get__(self._obj, self._cls)
11051105
if self._skip_bound_arg and isinstance(method, MethodType):
1106-
args = args[1:]
1106+
return method(*args[1:], **kwargs)
11071107
return method(*args, **kwargs)
11081108

11091109
def __getattr__(self, name):

0 commit comments

Comments
 (0)