From b0dc322864895f390444ec51e110ed3245552b96 Mon Sep 17 00:00:00 2001 From: sanjaymjoshi Date: Sun, 14 May 2023 09:36:46 -0400 Subject: [PATCH] ignore unreachable code --- relistats/binom_fin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/relistats/binom_fin.py b/relistats/binom_fin.py index 95ed1b8..24bf4e3 100644 --- a/relistats/binom_fin.py +++ b/relistats/binom_fin.py @@ -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: