Skip to content

Commit 3edad44

Browse files
committed
Rename function to _get_singledispatch_annotated_param
1 parent 30994eb commit 3edad44

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
@@ -888,7 +888,7 @@ def _find_impl(cls, registry):
888888
match = t
889889
return registry.get(match)
890890

891-
def _get_dispatch_param(func, *, _inside_dispatchmethod=False):
891+
def _get_singledispatch_annotated_param(func, *, _inside_dispatchmethod=False):
892892
"""Finds the first positional and user-specified parameter in a callable
893893
or descriptor.
894894
@@ -999,7 +999,7 @@ def register(cls, func=None, _inside_dispatchmethod=False):
999999
)
10001000
func = cls
10011001

1002-
argname = _get_dispatch_param(
1002+
argname = _get_singledispatch_annotated_param(
10031003
func, _inside_dispatchmethod=_inside_dispatchmethod)
10041004
if argname is None:
10051005
raise TypeError(

0 commit comments

Comments
 (0)