Skip to content

Commit 345b7e9

Browse files
committed
Shorten a comment
1 parent 0eaaa5b commit 345b7e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/functools.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -903,8 +903,7 @@ def _get_positional_param(func, *, pos=0):
903903
return func_code.co_varnames[:func_code.co_argcount][pos]
904904
except IndexError:
905905
pass
906-
# Fallback path for ambiguous objects.
907-
# Follows __wrapped__, checks __signature__, __text_signature__, etc.
906+
# Fallback path for ambiguous objects with more sophisticated inspection.
908907
import inspect
909908
for param in list(inspect.signature(func).parameters.values())[pos:]:
910909
if param.kind in (param.KEYWORD_ONLY, param.VAR_KEYWORD):

0 commit comments

Comments
 (0)