Skip to content

Commit c9a1f1a

Browse files
committed
Clarify comment
1 parent 82616f9 commit c9a1f1a

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
@@ -996,7 +996,7 @@ def register(cls, func=None, _func_is_method=False):
996996
)
997997
func = cls
998998

999-
# 0 for functions, 1 for methods
999+
# 0 for functions, 1 for methods where first argument should be skipped
10001000
argpos = _func_is_method and not isinstance(func, staticmethod)
10011001
argname, cls = _get_dispatch_arg_from_annotations(func, pos=argpos)
10021002

0 commit comments

Comments
 (0)