pycode: Fix wrong type annotation

This commit is contained in:
Takeshi KOMIYA committed 2020-04-26 20:22:17 +09:00
1 parent ad4ea6aeb6
commit 02b8547a96
1 file changed
+1 -1
+1 -1
View File
@@ -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: