diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2021-09-04 18:52:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-04 18:52:55 +0200 |
commit | 25000863761220c1aa5db129e3cd41f5fe51b167 (patch) | |
tree | d211e4464a8aef25f969adffe7ba7cb6df8b8981 /tests/test_pylint_runners.py | |
parent | 6c818310fd0e2396b6333ad623da577bf84e361e (diff) | |
download | pylint-git-25000863761220c1aa5db129e3cd41f5fe51b167.tar.gz |
Add typing with `PyAnnotate` to `./tests` (#4950)
* Add mypy_extensions to requirement for ``NoReturn``
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'tests/test_pylint_runners.py')
-rw-r--r-- | tests/test_pylint_runners.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_pylint_runners.py b/tests/test_pylint_runners.py index d3d84fb79..84ac05c31 100644 --- a/tests/test_pylint_runners.py +++ b/tests/test_pylint_runners.py @@ -1,9 +1,11 @@ # pylint: disable=missing-module-docstring, missing-function-docstring import os import sys +from typing import Callable from unittest.mock import patch import pytest +from py._path.local import LocalPath # type: ignore from pylint import run_epylint, run_pylint, run_pyreverse, run_symilar @@ -11,7 +13,7 @@ from pylint import run_epylint, run_pylint, run_pyreverse, run_symilar @pytest.mark.parametrize( "runner", [run_epylint, run_pylint, run_pyreverse, run_symilar] ) -def test_runner(runner, tmpdir): +def test_runner(runner: Callable, tmpdir: LocalPath) -> None: filepath = os.path.abspath(__file__) testargs = ["", filepath] with tmpdir.as_cwd(): |