We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f65d178 commit f82b0c4Copy full SHA for f82b0c4
1 file changed
Doc/library/functools.rst
@@ -491,9 +491,6 @@ The :mod:`functools` module defines the following functions:
491
492
.. decorator:: singledispatch
493
494
- .. method:: singledispatch.register()
495
- :no-typesetting:
496
-
497
Transform a function into a :term:`single-dispatch <single
498
dispatch>` :term:`generic function`.
499
@@ -508,6 +505,9 @@ The :mod:`functools` module defines the following functions:
508
505
... print("Let me just say,", end=" ")
509
506
... print(arg)
510
507
+ .. method:: singledispatch.register()
+ :no-typesetting:
+
511
To add overloaded implementations to the function, use the :func:`!register`
512
attribute of the generic function, which can be used as a decorator. For
513
functions annotated with types, the decorator will infer the type of the
0 commit comments