mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-31567: add or fix decorator markup in docs (#3959)
This commit is contained in:
parent
277c84067f
commit
0e61e67a57
4 changed files with 8 additions and 8 deletions
|
@ -264,9 +264,9 @@ The :mod:`functools` module defines the following functions:
|
|||
return value
|
||||
|
||||
|
||||
.. decorator:: singledispatch(default)
|
||||
.. decorator:: singledispatch
|
||||
|
||||
Transforms a function into a :term:`single-dispatch <single
|
||||
Transform a function into a :term:`single-dispatch <single
|
||||
dispatch>` :term:`generic function`.
|
||||
|
||||
To define a generic function, decorate it with the ``@singledispatch``
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue