summaryrefslogtreecommitdiff
path: root/coverage/config.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-12-29 10:19:14 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-12-29 11:28:00 -0500
commitd4c2b18bdd0102ff873514e53ec560c3083c3413 (patch)
tree4e91bacd91f5a0fbcf4976376bbc87e88d46b551 /coverage/config.py
parent0accb68cd9ac353bd5464750987e02012bdb8e0c (diff)
downloadpython-coveragepy-git-d4c2b18bdd0102ff873514e53ec560c3083c3413.tar.gz
mypy: mypy checks plugin.py
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