Skip to content

Commit 7e52aed

Browse files
committed
Link fixes, add an article
1 parent ac70ae1 commit 7e52aed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/guides/libraries.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,11 +456,11 @@ Aliasing Decorators
456456
-------------------
457457

458458
When writing a library with a couple of decorator factories
459-
(i.e. functions returning decorators, like ``complex_decorator`` from
459+
(i.e. functions returning decorators, like ``complex_decorator`` from the
460460
:ref:`annotating-decorators` section) it may be tempting to create a shortcut
461461
for a decorator.
462462

463-
Different type checkers handle :class:`TypeAlias <typing.TypeAlias>` involving
463+
Different type checkers handle :data:`TypeAlias <typing.TypeAlias>` involving
464464
:class:`Callable <collections.abc.Callable>` in a
465465
different manner, so the most portable and easy way to create a shortcut
466466
is to define a callable :class:`Protocol <typing.Protocol>` as described in the
@@ -487,7 +487,7 @@ There is already a :class:`Protocol <typing.Protocol>` called
487487
488488
For non-trivial decorators with custom logic, it is still possible
489489
to define a custom protocol using :class:`ParamSpec <typing.ParamSpec>`
490-
and :class:`Concatenate <typing.Concatenate>` mechanisms:
490+
and :data:`Concatenate <typing.Concatenate>` mechanisms:
491491

492492
.. code:: python
493493

0 commit comments

Comments
 (0)