Skip to content

Commit 1142577

Browse files
committed
Cutoff on function, not method!
1 parent 3455cd9 commit 1142577

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 isinstance(method, MethodType):
1099+
if isinstance(method, FunctionType):
11001100
args = args[1:]
11011101
else:
11021102
method = self._dispatch(args[0].__class__)

0 commit comments

Comments
 (0)