Skip to content

Commit 3455cd9

Browse files
committed
Only cut off first argument if method becomes bound
1 parent 5479e0f commit 3455cd9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/functools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ def __call__(self, /, *args, **kwargs):
10961096
'1 positional argument')
10971097
if self._skip_bound_arg:
10981098
method = self._dispatch(args[1].__class__)
1099-
if not isinstance(method, FunctionType):
1099+
if isinstance(method, MethodType):
11001100
args = args[1:]
11011101
else:
11021102
method = self._dispatch(args[0].__class__)

0 commit comments

Comments
 (0)