diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-04-26 20:20:47 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-04-26 20:22:17 +0900 |
commit | 02b8547a96630ca9ff3a28709ff793eaa79c6402 (patch) | |
tree | 27b2499b7ab96b0d66f718595c2dcb1ff4aa8f02 /sphinx/pycode | |
parent | ad4ea6aeb6a8e0e2f566312ce8c8f96e702f0b7d (diff) | |
download | sphinx-git-02b8547a96630ca9ff3a28709ff793eaa79c6402.tar.gz |
pycode: Fix wrong type annotation
Diffstat (limited to 'sphinx/pycode')
-rw-r--r-- | sphinx/pycode/parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/pycode/parser.py b/sphinx/pycode/parser.py index b2c350707..c8a522fb6 100644 --- a/sphinx/pycode/parser.py +++ b/sphinx/pycode/parser.py @@ -285,7 +285,7 @@ class VariableCommentPicker(ast.NodeVisitor): else: self.add_entry(name.name) - def visit_ImportFrom(self, node: ast.Import) -> None: + def visit_ImportFrom(self, node: ast.ImportFrom) -> None: """Handles Import node and record it to definition orders.""" for name in node.names: if name.asname: |