summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/control.py b/coverage/control.py
index 4e97ce9c..637a8f6a 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -20,7 +20,7 @@ import warnings
from types import FrameType
from typing import (
cast,
- Any, Callable, Dict, Generator, IO, Iterable, List, Optional, Tuple, Union,
+ Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, Tuple, Union,
)
from coverage import env
@@ -56,7 +56,7 @@ from coverage.xmlreport import XmlReporter
os = isolate_module(os)
@contextlib.contextmanager
-def override_config(cov: Coverage, **kwargs: TConfigValueIn) -> Generator[None, None, None]:
+def override_config(cov: Coverage, **kwargs: TConfigValueIn) -> Iterator[None]:
"""Temporarily tweak the configuration of `cov`.
The arguments are applied to `cov.config` with the `from_args` method.