From 1d0261e5cb94a63b9aae1b57fd5b8f49f94348c5 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sat, 2 Oct 2021 13:54:17 +0300 Subject: [PATCH] coverage: add assert_never to exclude_lines These are assertions that should never trigger. --- .coveragerc | 1 + 1 file changed, 1 insertion(+) diff --git a/.coveragerc b/.coveragerc index 09ab37643..a335557d4 100644 --- a/.coveragerc +++ b/.coveragerc @@ -25,6 +25,7 @@ exclude_lines = ^\s*raise NotImplementedError\b ^\s*return NotImplemented\b ^\s*assert False(,|$) + ^\s*assert_never\( ^\s*if TYPE_CHECKING: ^\s*@overload( |$)