Skip to content

Commit f82b0c4

Browse files
authored
Update functools.rst
1 parent f65d178 commit f82b0c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/functools.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,6 @@ The :mod:`functools` module defines the following functions:
491491

492492
.. decorator:: singledispatch
493493

494-
.. method:: singledispatch.register()
495-
:no-typesetting:
496-
497494
Transform a function into a :term:`single-dispatch <single
498495
dispatch>` :term:`generic function`.
499496

@@ -508,6 +505,9 @@ The :mod:`functools` module defines the following functions:
508505
... print("Let me just say,", end=" ")
509506
... print(arg)
510507

508+
.. method:: singledispatch.register()
509+
:no-typesetting:
510+
511511
To add overloaded implementations to the function, use the :func:`!register`
512512
attribute of the generic function, which can be used as a decorator. For
513513
functions annotated with types, the decorator will infer the type of the

0 commit comments

Comments
 (0)