Skip to content

Commit 4e0a4dc

Browse files
committed
Evade some typing-related coverage (mis)-reporting
Refs: nedbat/coveragepy#1616 nedbat/coveragepy#831
1 parent ae55a8c commit 4e0a4dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ source = ["jsonschema"]
106106
dynamic_context = "test_function"
107107

108108
[tool.coverage.report]
109+
exclude_also = [
110+
"if TYPE_CHECKING:",
111+
"\\s*\\.\\.\\.\\s*",
112+
]
109113
omit = [
110114
"*/jsonschema/__main__.py",
111115
"*/jsonschema/benchmarks/*",

0 commit comments

Comments
 (0)