mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
pycode: Fix wrong type annotation
This commit is contained in:
parent
ad4ea6aeb6
commit
02b8547a96
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user