diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-01-04 07:03:10 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-01-04 07:03:10 -0500 |
commit | dbb94d570a2042409400c28ba3069dcb32a45159 (patch) | |
tree | 41caedd28b1d5cb99a76d8104566d309724eeeb7 /tests/helpers.py | |
parent | faa62d3f3d90c15e72040479a9b237ca86bbeae1 (diff) | |
download | python-coveragepy-git-dbb94d570a2042409400c28ba3069dcb32a45159.tar.gz |
mypy: summary.py, test_summary.py, tests/coveragetest.py
Diffstat (limited to 'tests/helpers.py')
-rw-r--r-- | tests/helpers.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/helpers.py b/tests/helpers.py index 0503097e..bffd800c 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -25,7 +25,7 @@ import pytest from coverage import env from coverage.exceptions import CoverageWarning from coverage.misc import output_encoding -from coverage.types import TLineNo +from coverage.types import TArc, TLineNo def run_command(cmd: str) -> Tuple[int, str]: @@ -198,7 +198,7 @@ _arcz_map.update({c: ord(c) - ord('0') for c in '123456789'}) _arcz_map.update({c: 10 + ord(c) - ord('A') for c in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}) -def arcz_to_arcs(arcz: str) -> List[Tuple[TLineNo, TLineNo]]: +def arcz_to_arcs(arcz: str) -> List[TArc]: """Convert a compact textual representation of arcs to a list of pairs. The text has space-separated pairs of letters. Period is -1, 1-9 are @@ -249,7 +249,7 @@ def _arcs_to_arcz_repr_one(num: TLineNo) -> str: return z -def arcs_to_arcz_repr(arcs: Iterable[Tuple[TLineNo, TLineNo]]) -> str: +def arcs_to_arcz_repr(arcs: Optional[Iterable[TArc]]) -> str: """Convert a list of arcs to a readable multi-line form for asserting. Each pair is on its own line, with a comment showing the arcz form, |