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
Intentionally don't handle an edge case
  • Loading branch information
johnslavik committed Feb 9, 2026
commit 9dac0970087f1b1cea0a70db735f7a89603f7978
3 changes: 1 addition & 2 deletions Lib/functools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,8 +1101,7 @@ def __call__(self, /, *args, **kwargs):
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):
and isinstance(method, MethodType)):
args = args[1:]
return method(*args, **kwargs)

Expand Down
Loading