Skip to content

Commit f6ce233

Browse files
committed
Somewhat better comment
1 parent 3b5a410 commit f6ce233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/functools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ def _get_singledispatch_annotated_param(func, *, role):
895895
Used by singledispatch for registration by type annotation of the parameter.
896896
"""
897897
if isinstance(func, staticmethod):
898-
idx = 0 # Always take the very first parameter.
898+
idx = 0 # Take the very first parameter.
899899
func = func.__func__
900900
elif isinstance(func, (classmethod, MethodType)):
901901
idx = 1 # Skip *cls* or *self*.

0 commit comments

Comments
 (0)