Tell coverage tool to ignore lines intended for mypy only

In particular, `if TYPE_CHECKING:` blocks and `...` in bodies of
overloaded method definitions.
This commit is contained in:
Maarten ter Huurne 2024-06-14 11:56:35 +02:00
parent 5fc37eb4b4
commit 9dc224723b

View file

@ -1,2 +1,8 @@
[run]
include = model_utils/*.py
[report]
exclude_also =
# Exclusive to mypy:
if TYPE_CHECKING:$
\.\.\.$