Skip to content

Commit 9b2d20d

Browse files
committed
Another comment improvement
1 parent 0a622fb commit 9b2d20d

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 # Nothing to skip.
898+
idx = 0 # Always 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)