From bf73b37080c3c6deec969a555b45b70ee6727b13 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 31 Dec 2022 14:53:21 -0500 Subject: mypy: check tests/goldtest.py, tests/test_html.py --- coverage/control.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'coverage/control.py') 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 -- cgit v1.2.1