Skip to content

Commit 5debe11

Browse files
committed
Get mypy passing again.
1 parent 48de57c commit 5debe11

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

flake8_unused_arguments.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def is_stub_function(function: FunctionTypes) -> bool:
227227
class FunctionFinder(NodeVisitor):
228228
functions: List[FunctionTypes]
229229

230-
def __init__(self, only_top_level=False) -> None:
230+
def __init__(self, only_top_level: bool = False) -> None:
231231
super().__init__()
232232
self.functions = []
233233
self.only_top_level = only_top_level
@@ -242,4 +242,4 @@ def visit_function_types(self, function: FunctionTypes) -> None:
242242
for obj in function.body:
243243
self.visit(obj)
244244

245-
visit_AsyncFunctionDef = visit_FunctionDef = visit_Lambda = visit_function_types
245+
visit_AsyncFunctionDef = visit_FunctionDef = visit_Lambda = visit_function_types # type: ignore[assignment]

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ deps =
1717
commands=
1818
mypy flake8_unused_arguments.py \
1919
--strict \
20-
--ignore-missing-imports
20+
--ignore-missing-imports \
21+
--show-error-codes
2122

2223
; run flake8 for basic linting
2324
[testenv:py38-flake8]

0 commit comments

Comments
 (0)