diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-09-09 15:06:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-09 15:06:13 +0200 |
commit | 6524ba540cbfc4f11e924925faebe7e21f87942e (patch) | |
tree | 651c092d18df42eb18d0c066e5af8b996e0c46c7 /tests/extensions | |
parent | 2b6bd64d43ed109b1ee15f0993c010660cf56b13 (diff) | |
download | pylint-git-6524ba540cbfc4f11e924925faebe7e21f87942e.tar.gz |
Finish unfinished typing in non core directories (#7443)
* Add typing to setup calls in documentation folder
* Finish some incomplete typing signatures in script
* Add typing to unfinished signatures in the tests directory
Diffstat (limited to 'tests/extensions')
-rw-r--r-- | tests/extensions/test_check_docs_utils.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/extensions/test_check_docs_utils.py b/tests/extensions/test_check_docs_utils.py index 3e70ffbfd..692c14859 100644 --- a/tests/extensions/test_check_docs_utils.py +++ b/tests/extensions/test_check_docs_utils.py @@ -3,8 +3,12 @@ # Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt """Unit tests for utils functions in :mod:`pylint.extensions._check_docs_utils`.""" + +from __future__ import annotations + import astroid import pytest +from astroid import nodes from pylint.extensions import _check_docs_utils as utils @@ -134,7 +138,7 @@ def test_space_indentation(string: str, count: int) -> None: ), ], ) -def test_exception(raise_node, expected): +def test_exception(raise_node: nodes.NodeNG, expected: set[str]) -> None: found_nodes = utils.possible_exc_types(raise_node) for node in found_nodes: assert isinstance(node, astroid.nodes.ClassDef) |