Skip to content

Commit

Permalink
refactor: Remove useless import nodes generic visits
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Apr 15, 2022
1 parent efba0c6 commit f83fc8e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/griffe/agents/visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,6 @@ def visit_import(self, node: ast.Import) -> None:
lineno=node.lineno,
endlineno=node.end_lineno, # type: ignore[attr-defined]
)
self.generic_visit(node)

def visit_importfrom(self, node: ast.ImportFrom) -> None: # noqa: WPS231
"""Visit an "import from" node.
Expand Down Expand Up @@ -412,7 +411,6 @@ def visit_importfrom(self, node: ast.ImportFrom) -> None: # noqa: WPS231
lineno=node.lineno,
endlineno=node.end_lineno, # type: ignore[attr-defined]
)
self.generic_visit(node)

def handle_attribute( # noqa: WPS231
self,
Expand Down

0 comments on commit f83fc8e

Please sign in to comment.