Skip to content

Commit 1c0afba

Browse files
Update Lib/inspect.py
Co-authored-by: Irit Katriel <[email protected]>
1 parent 2b48970 commit 1c0afba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/inspect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2442,8 +2442,8 @@ def _signature_from_callable(obj, *,
24422442

24432443
# Was this function wrapped by a decorator?
24442444
if follow_wrapper_chains:
2445-
# Unwrap until it has a explicit signature
2446-
# or it is a MethodType - we need to process it individually
2445+
# Unwrap until we find an explicit signature or a MethodType (which will be
2446+
# handled explicitly below).
24472447
obj = unwrap(obj, stop=(lambda f: hasattr(f, "__signature__")
24482448
or isinstance(f, types.MethodType)))
24492449
if isinstance(obj, types.MethodType):

0 commit comments

Comments
 (0)