Skip to content

Commit 9977251

Browse files
committed
Use stars for referring to param names
1 parent b55de76 commit 9977251

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
@@ -898,10 +898,10 @@ def _get_singledispatch_annotated_param(func, *, __role__):
898898
idx = 0 # Always take the very first parameter.
899899
func = func.__func__
900900
elif isinstance(func, (classmethod, MethodType)):
901-
idx = 1 # Skip 'cls' or 'self'.
901+
idx = 1 # Skip *cls* or *self*.
902902
func = func.__func__
903903
else:
904-
# Skip 'self' when called from `singledispatchmethod.register`.
904+
# Skip *self* when called from `singledispatchmethod.register`.
905905
idx = 0 if __role__ == "function" else 1
906906
# Fast path: emulate `inspect._signature_from_function` if possible.
907907
if isinstance(func, FunctionType) and not hasattr(func, "__wrapped__"):

0 commit comments

Comments
 (0)