summaryrefslogtreecommitdiff
path: root/coverage/types.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-12-31 08:23:51 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-12-31 08:34:59 -0500
commit77cdb9f15cd161e25da6f47ceaa8deb516c353af (patch)
treed60ab04f46899d84655950b37070883c17506473 /coverage/types.py
parent7366feb46f25d07c60d1fcaa941f8d0613dbd764 (diff)
downloadpython-coveragepy-git-77cdb9f15cd161e25da6f47ceaa8deb516c353af.tar.gz
mypy: add data.py and test_api.py
Diffstat (limited to 'coverage/types.py')
-rw-r--r--coverage/types.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/coverage/types.py b/coverage/types.py
index b7390962..6e69fc09 100644
--- a/coverage/types.py
+++ b/coverage/types.py
@@ -6,7 +6,10 @@ Types for use throughout coverage.py.
"""
from types import ModuleType
-from typing import Dict, Iterable, List, Optional, Sequence, Tuple, Union, TYPE_CHECKING
+from typing import (
+ Any, Dict, Iterable, List, Optional, Sequence, Tuple, Union,
+ TYPE_CHECKING,
+)
if TYPE_CHECKING:
# Protocol is new in 3.8. PYVERSIONS
@@ -15,6 +18,10 @@ else:
class Protocol: # pylint: disable=missing-class-docstring
pass
+# Many places use kwargs as Coverage kwargs.
+TCovKwargs = Any
+
+
## Configuration
# One value read from a config file.