From 124b3758c0da8c8fa9f11bfd93700cdcf52a789d Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 29 Dec 2022 11:21:27 -0500 Subject: mypy: check results.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 9947351e..5f101aaa 100644 --- a/coverage/plugin.py +++ b/coverage/plugin.py @@ -458,7 +458,7 @@ class FileReporter: """ return set() - def translate_arcs(self, arcs: Set[TArc]) -> Set[TArc]: + def translate_arcs(self, arcs: Iterable[TArc]) -> Set[TArc]: """Translate recorded arcs into reported arcs. Similar to :meth:`translate_lines`, but for arcs. `arcs` is a set of @@ -469,7 +469,7 @@ class FileReporter: The default implementation returns `arcs` unchanged. """ - return arcs + return set(arcs) def exit_counts(self) -> Dict[TLineNo, int]: """Get a count of exits from that each line. -- cgit v1.2.1