diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-04-13 23:08:52 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-04-23 01:40:37 +0900 |
commit | a77613fcfaf1323a46ba5645cc5569da7457d2fa (patch) | |
tree | f08ef974764f743d3689a17cbcf4ab447e0a2b1b /sphinx/pycode | |
parent | e0abb107929df0d2e97daa7cddeda1e7b4763d60 (diff) | |
download | sphinx-git-a77613fcfaf1323a46ba5645cc5569da7457d2fa.tar.gz |
pycode: Support "async" syntax
Diffstat (limited to 'sphinx/pycode')
-rw-r--r-- | sphinx/pycode/parser.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sphinx/pycode/parser.py b/sphinx/pycode/parser.py index bf80f4367..9f9f7dd29 100644 --- a/sphinx/pycode/parser.py +++ b/sphinx/pycode/parser.py @@ -381,6 +381,10 @@ class VariableCommentPicker(ast.NodeVisitor): self.context.pop() self.current_function = None + def visit_AsyncFunctionDef(self, node): + # type: (ast.AsyncFunctionDef) -> None + self.visit_FunctionDef(node) # type: ignore + class DefinitionFinder(TokenProcessor): def __init__(self, lines): |