File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -456,11 +456,11 @@ Aliasing Decorators
456456-------------------
457457
458458When 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
461461for 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
465465different manner, so the most portable and easy way to create a shortcut
466466is 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
489489to 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
You can’t perform that action at this time.
0 commit comments