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
Assign the boolean directly
Co-authored-by: Jason R. Coombs <[email protected]>
  • Loading branch information
johnslavik and jaraco authored Feb 16, 2026
commit 21dcd02b04b631fb865cb29e1b578c2e414e7881
5 changes: 1 addition & 4 deletions Lib/functools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1063,10 +1063,7 @@ def __init__(self, unbound, obj, cls):

# Dispatch on the second argument if a generic method turns into
# a bound method on instance-level access. See GH-143535.
if obj is None and isinstance(func, FunctionType):
self._skip_bound_arg = True
else:
self._skip_bound_arg = False
self._skip_bound_arg = obj is None and isinstance(func, FunctionType)

try:
self.__module__ = func.__module__
Expand Down
Loading