Skip to content

Commit

Permalink
chore: Add back required type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
sondrelg committed Jan 23, 2022
1 parent fee837b commit 7390904
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flake8_type_checking/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def _add_annotation(self, node: ast.AST) -> None:
if isinstance(node, ast.Ellipsis):
return
if py38 and isinstance(node, Index):
return self._add_annotation(node.value)
return self._add_annotation(node.value) # type: ignore[attr-defined]
if isinstance(node, ast.Constant):
if node.value is None:
return
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ warn_unused_configs = True
warn_return_any = True
show_error_codes = True
ignore_missing_imports = True
warn_unused_ignores = False

[mypy-tests.*]
disallow_untyped_defs = False

0 comments on commit 7390904

Please sign in to comment.