On Thu, Feb 12, 2015 at 11:30 PM, Ludovic Gasc <[email protected]> wrote:
> I'm not a sphinx expert, but if somebody is working on a solution, isn't
> could more generic to handle any Python decorator, instead of coroutines
> only ?

This patch is quite trivial: need to add coroutine object type to
sphinx.domains.python as like as classmethod is implemented and teach
sphinx.ext.autodoc to recognize coroutines by _is_coroutine attribute
or via asyncio.iscoroutinefunction - depending on portability level
you want to keep for sphinx.

However, static and class methods could also be coroutines, so it ends
with only way to define coroutine as directive option (as like as
synopsis, deprecated, noindex and others are done).

--
,,,^..^,,,

Reply via email to