Skip to content

Commit 91db2fe

Browse files
committed
Update flake8_entry.py
1 parent ebd804e commit 91db2fe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pydoclint/flake8_entry.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# mypy: disable-error-code=attr-defined
2+
13
import ast
24
import importlib.metadata as importlib_metadata
35
from typing import Any, Generator, Tuple
@@ -15,7 +17,7 @@ def __init__(self, tree: ast.AST) -> None:
1517
self._tree = tree
1618

1719
@classmethod
18-
def add_options(cls, parser): # noqa: D102
20+
def add_options(cls, parser: Any) -> None: # noqa: D102
1921
parser.add_option(
2022
'--style',
2123
action='store',
@@ -196,7 +198,7 @@ def add_options(cls, parser): # noqa: D102
196198
)
197199

198200
@classmethod
199-
def parse_options(cls, options): # noqa: D102
201+
def parse_options(cls, options: Any) -> None: # noqa: D102
200202
cls.type_hints_in_signature = options.type_hints_in_signature
201203
cls.type_hints_in_docstring = options.type_hints_in_docstring
202204
cls.arg_type_hints_in_signature = options.arg_type_hints_in_signature

0 commit comments

Comments
 (0)