Skip to content

Commit 21dcd02

Browse files
johnslavikjaraco
andauthored
Assign the boolean directly
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
1 parent 85c318d commit 21dcd02

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Lib/functools.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,10 +1063,7 @@ def __init__(self, unbound, obj, cls):
10631063

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

10711068
try:
10721069
self.__module__ = func.__module__

0 commit comments

Comments
 (0)