From 21d66355a392d3d3dec8f79770e4be7673edf1dd Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 29 Dec 2022 16:53:54 -0500 Subject: mypy: check python.py --- coverage/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coverage/plugin.py') diff --git a/coverage/plugin.py b/coverage/plugin.py index 5f101aaa..ee1ae365 100644 --- a/coverage/plugin.py +++ b/coverage/plugin.py @@ -121,7 +121,7 @@ from typing import Any, Dict, Iterable, List, Optional, Set, Tuple, Union from coverage import files from coverage.misc import _needs_to_implement -from coverage.types import TArc, TConfigurable, TLineNo +from coverage.types import TArc, TConfigurable, TLineNo, TSourceTokenLines class CoveragePlugin: @@ -504,7 +504,7 @@ class FileReporter: """ return f"Line {start} didn't jump to line {end}" - def source_token_lines(self) -> Iterable[List[Tuple[str, str]]]: + def source_token_lines(self) -> TSourceTokenLines: """Generate a series of tokenized lines, one for each line in `source`. These tokens are used for syntax-colored reports. -- cgit v1.2.1