Skip to content

Commit 439994e

Browse files
committed
Tidying up.
1 parent 5004e65 commit 439994e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

flake8_sphinx_links/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,14 @@ class Visitor(ast.NodeVisitor):
161161
"""
162162

163163
def __init__(self) -> None:
164-
"""Initialise the AST NodeVisitor."""
164+
"""
165+
Initialise the AST NodeVisitor.
166+
"""
167+
165168
self.errors: List[Tuple[int, int, str]] = []
166169
self._from_imports: Dict[str, str] = {}
167170

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

171174
if docstring:

0 commit comments

Comments
 (0)