diff --git a/.coveragerc b/.coveragerc index 5d502a7503a..2347ee1902e 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1167,3 +1167,6 @@ exclude_lines = # Don't complain if tests don't hit defensive assertion code: raise AssertionError raise NotImplementedError + + # TYPE_CHECKING block is never executed during pytest run + if TYPE_CHECKING: