summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-12-31 14:53:21 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-12-31 14:53:21 -0500
commitbf73b37080c3c6deec969a555b45b70ee6727b13 (patch)
tree98f6c9c20d89afcc4d0c2396a155229fbd802290 /coverage/control.py
parentee1e4150529e55cd860fc3628b820d3a2ed471de (diff)
downloadpython-coveragepy-git-bf73b37080c3c6deec969a555b45b70ee6727b13.tar.gz
mypy: check tests/goldtest.py, tests/test_html.py
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/coverage/control.py b/coverage/control.py
index 6bbc17c7..be47ec37 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -866,7 +866,7 @@ class Coverage(TConfigurable):
analysis.missing_formatted(),
)
- def _analyze(self, it):
+ def _analyze(self, it) -> Analysis:
"""Analyze a single morf or code unit.
Returns an `Analysis` object.
@@ -949,7 +949,7 @@ class Coverage(TConfigurable):
precision=None,
sort=None,
output_format=None,
- ):
+ ) -> float:
"""Write a textual summary report to `file`.
Each module in `morfs` is listed, with counts of statements, executed
@@ -1070,7 +1070,7 @@ class Coverage(TConfigurable):
contexts=None,
skip_empty=None,
precision=None,
- ):
+ ) -> float:
"""Generate an HTML report.
The HTML is written to `directory`. The file "index.html" is the
@@ -1123,7 +1123,7 @@ class Coverage(TConfigurable):
include=None,
contexts=None,
skip_empty=None,
- ):
+ ) -> float:
"""Generate an XML report of coverage results.
The report is compatible with Cobertura reports.
@@ -1158,7 +1158,7 @@ class Coverage(TConfigurable):
contexts=None,
pretty_print=None,
show_contexts=None,
- ):
+ ) -> float:
"""Generate a JSON report of coverage results.
Each module in `morfs` is included in the report. `outfile` is the
@@ -1192,7 +1192,7 @@ class Coverage(TConfigurable):
omit=None,
include=None,
contexts=None,
- ):
+ ) -> float:
"""Generate an LCOV report of coverage results.
Each module in 'morfs' is included in the report. 'outfile' is the