Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Inline argument cutoff condition
  • Loading branch information
johnslavik committed Feb 9, 2026
commit 1a24e431d785afbb2d14c98a067dc8560ea3f2bb
3 changes: 1 addition & 2 deletions Lib/functools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,8 +1100,7 @@ def __call__(self, /, *args, **kwargs):
method = self._dispatch(args[0].__class__)
if hasattr(method, "__get__"):
method = method.__get__(self._obj, self._cls)
if (self._skip_bound_arg
and isinstance(method, MethodType)):
if self._skip_bound_arg and isinstance(method, MethodType):
args = args[1:]
return method(*args, **kwargs)

Expand Down