Skip to content

Commit f9c3954

Browse files
authored
Add the :deco: role (#1686)
1 parent 587de2e commit f9c3954

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

documentation/markup.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,8 @@ The directives are:
544544

545545
Set name of the decorated function to *name*.
546546

547-
There is no ``deco`` role to link to a decorator that is marked up with
548-
this directive; rather, use the ``:func:`` role.
547+
To link to a decorator that is marked up with this directive,
548+
use the ``:deco:`` role.
549549

550550
.. describe:: class
551551

@@ -806,6 +806,10 @@ a matching identifier is found:
806806

807807
The name of an exception. A dotted name may be used.
808808

809+
.. describe:: deco
810+
811+
The name of a decorator. A dotted name may be used.
812+
809813
The name enclosed in this markup can include a module name and/or a class name.
810814
For example, ``:func:`filter``` could refer to a function named ``filter`` in
811815
the current module, or the built-in function of that name. In contrast,

0 commit comments

Comments
 (0)