Skip to content

Commit 52dccfd

Browse files
committed
coverage: ignore def foo(): ... lines
These often appear in Protocols and ABCs and are never executed so not expected to be covered.
1 parent 261e7f1 commit 52dccfd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ exclude_lines =
2929

3030
^\s*if TYPE_CHECKING:
3131
^\s*@overload( |$)
32+
^\s*def .+: \.\.\.$
3233

3334
^\s*@pytest\.mark\.xfail

0 commit comments

Comments
 (0)