summaryrefslogtreecommitdiff
path: root/coverage/types.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-01-12 10:47:08 -0500
committerNed Batchelder <ned@nedbatchelder.com>2023-01-12 10:47:08 -0500
commita15b90268f37d5f3a06b28ecb9277e636b493b1d (patch)
tree04fa3e38f18bb1489abd2004abca81b23eb5e3ac /coverage/types.py
parent460dd98dae56d26f0611a0f6dc9c24e44435958f (diff)
downloadpython-coveragepy-git-a15b90268f37d5f3a06b28ecb9277e636b493b1d.tar.gz
mypy: progress on test_plugins.py
Diffstat (limited to 'coverage/types.py')
-rw-r--r--coverage/types.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/coverage/types.py b/coverage/types.py
index 736269e0..3d21ac9d 100644
--- a/coverage/types.py
+++ b/coverage/types.py
@@ -136,6 +136,13 @@ class TConfigurable(Protocol):
"""
+class TPluginConfig(Protocol):
+ """Something that can provide options to a plugin."""
+
+ def get_plugin_options(self, plugin: str) -> TConfigSectionOut:
+ """Get the options for a plugin."""
+
+
## Parsing
TMorf = Union[ModuleType, str]