From 77cdb9f15cd161e25da6f47ceaa8deb516c353af Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 31 Dec 2022 08:23:51 -0500 Subject: mypy: add data.py and test_api.py --- coverage/types.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'coverage/types.py') 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. -- cgit v1.2.1