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
Fix formatting
  • Loading branch information
johnslavik committed Feb 9, 2026
commit f6afaec4fff8d411e7b0438db757ffedaa440e39
7 changes: 3 additions & 4 deletions Lib/functools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,10 +1100,9 @@ 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)
and method.__self__ is self):
if (self._skip_bound_arg
and isinstance(method, MethodType)
and method.__self__ is self):
args = args[1:]
return method(*args, **kwargs)

Expand Down
Loading