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/regrtest_data | |
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/regrtest_data')
-rw-r--r-- | tests/regrtest_data/dummy_plugin/dummy_plugin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/regrtest_data/dummy_plugin/dummy_plugin.py b/tests/regrtest_data/dummy_plugin/dummy_plugin.py index 95b0b9305..dd0554f7e 100644 --- a/tests/regrtest_data/dummy_plugin/dummy_plugin.py +++ b/tests/regrtest_data/dummy_plugin/dummy_plugin.py @@ -1,4 +1,5 @@ from pylint.checkers import BaseChecker +from pylint.lint.pylinter import PyLinter class DummyPlugin1(BaseChecker): @@ -25,6 +26,6 @@ class DummyPlugin2(BaseChecker): ) -def register(linter): +def register(linter: PyLinter) -> None: linter.register_checker(DummyPlugin1(linter)) linter.register_checker(DummyPlugin2(linter)) |