Fix #7189: autodoc: classmethod coroutines are not detected

This commit is contained in:
Takeshi KOMIYA
2020-02-22 00:28:35 +09:00
parent 130a0a7f38
commit 2fec37219f
5 changed files with 55 additions and 5 deletions

View File

@@ -3,6 +3,16 @@ class AsyncClass:
"""A documented coroutine function"""
attr_coro_result = await _other_coro_func() # NOQA
@classmethod
async def do_coroutine2(cls):
"""A documented coroutine classmethod"""
pass
@staticmethod
async def do_coroutine3():
"""A documented coroutine staticmethod"""
pass
async def _other_coro_func():
return "run"