diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2023-01-12 20:51:58 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-01-12 21:04:26 -0500 |
| commit | b5b223723fd1aeaa8ed650b8440b4b8c08f8e378 (patch) | |
| tree | 3fcf638c95544992e80c1523c1b6084dec05ad93 /tests/modules/plugins | |
| parent | a5aeec363e2f50312007ef40903f1dcaae0b5133 (diff) | |
| download | python-coveragepy-git-b5b223723fd1aeaa8ed650b8440b4b8c08f8e378.tar.gz | |
mypy: all of coverage/ and tests/ are checked
Diffstat (limited to 'tests/modules/plugins')
| -rw-r--r-- | tests/modules/plugins/a_plugin.py | 10 | ||||
| -rw-r--r-- | tests/modules/plugins/another.py | 11 |
2 files changed, 18 insertions, 3 deletions
diff --git a/tests/modules/plugins/a_plugin.py b/tests/modules/plugins/a_plugin.py index 0cc96e5a..2122e869 100644 --- a/tests/modules/plugins/a_plugin.py +++ b/tests/modules/plugins/a_plugin.py @@ -1,11 +1,19 @@ """A plugin for tests to reference.""" +from __future__ import annotations + +from typing import Any + from coverage import CoveragePlugin +from coverage.plugin_support import Plugins class Plugin(CoveragePlugin): pass -def coverage_init(reg, options): +def coverage_init( + reg: Plugins, + options: Any, # pylint: disable=unused-argument +) -> None: reg.add_file_tracer(Plugin()) diff --git a/tests/modules/plugins/another.py b/tests/modules/plugins/another.py index dfe03c97..a6145903 100644 --- a/tests/modules/plugins/another.py +++ b/tests/modules/plugins/another.py @@ -3,12 +3,19 @@ """A plugin for tests to reference.""" -from coverage import CoveragePlugin +from __future__ import annotations + +from typing import Any +from coverage import CoveragePlugin +from coverage.plugin_support import Plugins class Plugin(CoveragePlugin): pass -def coverage_init(reg, options): +def coverage_init( + reg: Plugins, + options: Any, # pylint: disable=unused-argument +) -> None: reg.add_file_tracer(Plugin()) |
