Skip to content

Commit 1a24e43

Browse files
committed
Inline argument cutoff condition
1 parent 12cd97a commit 1a24e43

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/functools.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,8 +1100,7 @@ def __call__(self, /, *args, **kwargs):
11001100
method = self._dispatch(args[0].__class__)
11011101
if hasattr(method, "__get__"):
11021102
method = method.__get__(self._obj, self._cls)
1103-
if (self._skip_bound_arg
1104-
and isinstance(method, MethodType)):
1103+
if self._skip_bound_arg and isinstance(method, MethodType):
11051104
args = args[1:]
11061105
return method(*args, **kwargs)
11071106

0 commit comments

Comments
 (0)