Skip to content

Commit 9dc2247

Browse files
committed
Tell coverage tool to ignore lines intended for mypy only
In particular, `if TYPE_CHECKING:` blocks and `...` in bodies of overloaded method definitions.
1 parent 5fc37eb commit 9dc2247

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.coveragerc

+6
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
[run]
22
include = model_utils/*.py
3+
4+
[report]
5+
exclude_also =
6+
# Exclusive to mypy:
7+
if TYPE_CHECKING:$
8+
\.\.\.$

0 commit comments

Comments
 (0)