summaryrefslogtreecommitdiff
path: root/tests/test_func.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_func.py')
-rw-r--r--tests/test_func.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_func.py b/tests/test_func.py
index 98bdf184a..914fbbc92 100644
--- a/tests/test_func.py
+++ b/tests/test_func.py
@@ -79,9 +79,9 @@ class LintTestUsingModule:
self.linter.check(tocheck)
except Exception as ex:
print(f"Exception: {ex} in {tocheck}:: {'‚ '.join(ex.args)}")
- ex.file = tocheck # type: ignore # This is legacy code we're trying to remove, not worth it to type correctly
+ ex.file = tocheck # type: ignore[attr-defined] # This is legacy code we're trying to remove, not worth it to type correctly
print(ex)
- ex.__str__ = exception_str # type: ignore # This is legacy code we're trying to remove, impossible to type correctly
+ ex.__str__ = exception_str # type: ignore[assignment] # This is legacy code we're trying to remove, impossible to type correctly
raise
self._check_result(self.linter.reporter.finalize())