Skip to content

Commit 0eaaa5b

Browse files
committed
Better comments!
1 parent 6642321 commit 0eaaa5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/functools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ def _get_positional_param(func, *, pos=0):
894894
Used by singledispatch for registration by type annotation.
895895
*pos* should either be 0 (for functions and staticmethods) or 1 (for methods).
896896
"""
897-
# Fast path for typical callables.
897+
# Fast path for typical callable objects.
898898
if isinstance(func, (MethodType, classmethod, staticmethod)):
899899
func = func.__func__
900900
if isinstance(func, FunctionType) and not hasattr(func, "__wrapped__"):
@@ -903,7 +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 callables.
906+
# Fallback path for ambiguous objects.
907907
# Follows __wrapped__, checks __signature__, __text_signature__, etc.
908908
import inspect
909909
for param in list(inspect.signature(func).parameters.values())[pos:]:

0 commit comments

Comments
 (0)