Skip to content

Commit

Permalink
ignore unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjaymjoshi committed May 14, 2023
1 parent 339d443 commit b0dc322
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion relistats/binom_fin.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def reli_fin(n: int, f: int, c: float, m: int) -> tuple:
c2, r2 = conf_fin(n, f, m, d)
if c2 >= c:
return (r2, c2)
return (0, c) # never reached!
return (0, c) # pragma: no cover
# This line is never reached in pytest!


def assur_fin(n: int, f: int, m: int, tol=0.001) -> tuple:
Expand Down

0 comments on commit b0dc322

Please sign in to comment.