Skip to content

Commit

Permalink
Removed config
Browse files Browse the repository at this point in the history
  • Loading branch information
CulmoneY committed Nov 21, 2024
1 parent fcda70c commit 400d81b
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions python_ta/checkers/static_type_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,6 @@ class StaticTypeChecker(BaseChecker):
),
}

options = (
(
"mypy-ignore-errors",
{
"default": (),
"type": "csv",
"metavar": "<mypy-ignore-errors>",
"help": "List of Mypy error codes to ignore",
},
),
)

def __init__(self, linter: Optional["PyLinter"] = None) -> None:
"""Initialize the StaticTypeChecker."""
super().__init__(linter=linter)
Expand All @@ -79,7 +67,7 @@ def visit_module(self, node: nodes.Module) -> None:
mypy_options = [
"--ignore-missing-imports",
"--disable-error-code=call-arg",
] + list(self.linter.config.mypy_ignore_errors)
]
result, _, _ = api.run([filename] + mypy_options)
self._module_stack.append(
{
Expand Down

0 comments on commit 400d81b

Please sign in to comment.