diff options
Diffstat (limited to 'coverage/plugin.py')
-rw-r--r-- | coverage/plugin.py | 4 |
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. |