Skip to content

Commit

Permalink
Tidying up.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Jul 27, 2020
1 parent 5004e65 commit 439994e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions flake8_sphinx_links/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,14 @@ class Visitor(ast.NodeVisitor):
"""

def __init__(self) -> None:
"""Initialise the AST NodeVisitor."""
"""
Initialise the AST NodeVisitor.
"""

self.errors: List[Tuple[int, int, str]] = []
self._from_imports: Dict[str, str] = {}

def _check_docstring(self, node: Union[ast.ClassDef, ast.FunctionDef, ast.Module]):
def _check_docstring(self, node: Union[ast.ClassDef, ast.FunctionDef, ast.Module]) -> None:
docstring = ast.get_docstring(node, clean=False)

if docstring:
Expand Down

0 comments on commit 439994e

Please sign in to comment.