Skip to content

Commit 50c0e64

Browse files
committed
Fix comment
1 parent 8350e71 commit 50c0e64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/functools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,12 +911,13 @@ def _get_dispatch_param(func, *, _inside_dispatchmethod=False):
911911
idx = _inside_dispatchmethod
912912

913913
if isinstance(func, FunctionType) and not hasattr(func, "__wrapped__"):
914-
# Method from inspect._signature_from_function.
914+
# Emulate inspect._signature_from_function to get the desired parameter.
915915
func_code = func.__code__
916916
try:
917917
return func_code.co_varnames[:func_code.co_argcount][idx]
918918
except IndexError:
919919
pass
920+
920921
# Fallback path for more nuanced inspection of ambiguous callables.
921922
import inspect
922923
try:

0 commit comments

Comments
 (0)