docs: fix decorator types.

This commit is contained in:
David Wilson 2017-10-05 14:05:10 +05:30
parent ec66152e37
commit 270b242ec5
1 changed files with 2 additions and 4 deletions

View File

@ -28,8 +28,7 @@ non-essential code in order to reduce its size, since it is also serves as the
bootstrap implementation sent to every new slave context. bootstrap implementation sent to every new slave context.
.. currentmodule:: mitogen.core .. currentmodule:: mitogen.core
.. decorator:: takes_econtext
.. function:: takes_econtext
Decorator that marks a function or class method to automatically receive a Decorator that marks a function or class method to automatically receive a
kwarg named `econtext`, referencing the kwarg named `econtext`, referencing the
@ -41,8 +40,7 @@ bootstrap implementation sent to every new slave context.
explicitly. explicitly.
.. currentmodule:: mitogen.core .. currentmodule:: mitogen.core
.. decorator:: takes_router
.. function:: takes_router
Decorator that marks a function or class method to automatically receive a Decorator that marks a function or class method to automatically receive a
kwarg named `router`, referencing the :py:class:`econtext.core.Router` kwarg named `router`, referencing the :py:class:`econtext.core.Router`