From a15b90268f37d5f3a06b28ecb9277e636b493b1d Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 12 Jan 2023 10:47:08 -0500 Subject: mypy: progress on test_plugins.py --- coverage/types.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'coverage/types.py') 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] -- cgit v1.2.1