summaryrefslogtreecommitdiff
path: root/coverage/plugin.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-12-29 11:21:27 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-12-29 11:28:14 -0500
commit124b3758c0da8c8fa9f11bfd93700cdcf52a789d (patch)
tree0bf1822ca8d2ad7816a815509dac495bd5165144 /coverage/plugin.py
parent2b91ea60231c85b368ddf58bf132a52f89b09ad4 (diff)
downloadpython-coveragepy-git-124b3758c0da8c8fa9f11bfd93700cdcf52a789d.tar.gz
mypy: check results.py
Diffstat (limited to 'coverage/plugin.py')
-rw-r--r--coverage/plugin.py4
1 files changed, 2 insertions, 2 deletions
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.