summaryrefslogtreecommitdiff
path: root/coverage/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/config.py')
-rw-r--r--coverage/config.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/coverage/config.py b/coverage/config.py
index 3e4a8dd0..1846aee4 100644
--- a/coverage/config.py
+++ b/coverage/config.py
@@ -17,18 +17,12 @@ from typing import (
from coverage.exceptions import ConfigError
from coverage.misc import isolate_module, human_sorted_items, substitute_variables
-
from coverage.tomlconfig import TomlConfigParser, TomlDecodeError
+from coverage.types import TConfigurable, TConfigSection, TConfigValue
os = isolate_module(os)
-# One value read from a config file.
-TConfigValue = Union[str, List[str]]
-# An entire config section, mapping option names to values.
-TConfigSection = Dict[str, TConfigValue]
-
-
class HandyConfigParser(configparser.ConfigParser):
"""Our specialization of ConfigParser."""
@@ -169,7 +163,7 @@ DEFAULT_PARTIAL_ALWAYS = [
]
-class CoverageConfig:
+class CoverageConfig(TConfigurable):
"""Coverage.py configuration.
The attributes of this class are the various settings that control the