Skip to content

Commit 946ccb8

Browse files
committed
Remove comments that are sorta obvious
1 parent f7ec61d commit 946ccb8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Lib/functools.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -894,17 +894,12 @@ def _get_singledispatch_annotated_param(func, *, __role__):
894894
895895
Used by singledispatch for registration by type annotation of the parameter.
896896
"""
897-
# Pick the first parameter if function had @staticmethod.
898897
if isinstance(func, staticmethod):
899898
idx = 0
900899
func = func.__func__
901-
# Pick the second parameter if function had @classmethod or is a bound method.
902900
elif isinstance(func, (classmethod, MethodType)):
903901
idx = 1
904902
func = func.__func__
905-
# If it is a regular function:
906-
# Pick the first parameter if registering via singledispatch.
907-
# Pick the second parameter if registering via singledispatchmethod.
908903
else:
909904
idx = 0 if __role__ == "function" else 1
910905

0 commit comments

Comments
 (0)