We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 008b1b7 commit 8279be2Copy full SHA for 8279be2
coverage_comment/coverage.py
@@ -6,7 +6,6 @@
6
import json
7
import pathlib
8
from collections.abc import Sequence
9
-from typing import cast
10
11
from coverage_comment import log, subprocess
12
@@ -92,8 +91,6 @@ def compute_coverage(
92
91
num_branches_total: int = 0,
93
) -> decimal.Decimal:
94
"""Compute the coverage percentage, with or without branch coverage."""
95
- num_branches_covered = cast(int, num_branches_covered)
96
- num_branches_total = cast(int, num_branches_total)
97
numerator = decimal.Decimal(num_covered + num_branches_covered)
98
denominator = decimal.Decimal(num_total + num_branches_total)
99
if denominator == 0:
0 commit comments