Skip to content

Commit 9dac097

Browse files
committed
Intentionally don't handle an edge case
1 parent f6afaec commit 9dac097

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/functools.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,8 +1101,7 @@ def __call__(self, /, *args, **kwargs):
11011101
if hasattr(method, "__get__"):
11021102
method = method.__get__(self._obj, self._cls)
11031103
if (self._skip_bound_arg
1104-
and isinstance(method, MethodType)
1105-
and method.__self__ is self):
1104+
and isinstance(method, MethodType)):
11061105
args = args[1:]
11071106
return method(*args, **kwargs)
11081107

0 commit comments

Comments
 (0)