diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-09-09 12:56:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-09 12:56:40 +0200 |
commit | 2b6bd64d43ed109b1ee15f0993c010660cf56b13 (patch) | |
tree | 0f8605ed4d6b2dc4d0d176a4761d6fdd6526eb4d /tests/test_func.py | |
parent | 6bac42efacdf1c1777db2021ca6ceda89eb8f199 (diff) | |
download | pylint-git-2b6bd64d43ed109b1ee15f0993c010660cf56b13.tar.gz |
Finish some incomplete typing signatures (#7442)
Diffstat (limited to 'tests/test_func.py')
-rw-r--r-- | tests/test_func.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_func.py b/tests/test_func.py index 6fd7585b9..528019692 100644 --- a/tests/test_func.py +++ b/tests/test_func.py @@ -25,11 +25,13 @@ FILTER_RGX = None INFO_TEST_RGX = re.compile(r"^func_i\d\d\d\d$") -def exception_str(self, ex) -> str: # pylint: disable=unused-argument +def exception_str( + self: Exception, ex: Exception # pylint: disable=unused-argument +) -> str: """Function used to replace default __str__ method of exception instances This function is not typed because it is legacy code """ - return f"in {ex.file}\n:: {', '.join(ex.args)}" + return f"in {ex.file}\n:: {', '.join(ex.args)}" # type: ignore[attr-defined] # Defined in the caller class LintTestUsingModule: |