From 9254a4f9f8d9475c9f4d00a854694ddf1834ba5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Thu, 24 Oct 2024 22:21:15 +0300 Subject: [PATCH] Exclude `@overload` and `if TYPE_CHECKING:` from coverage checks --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 45628b05..6cf58061 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -82,6 +82,10 @@ testpaths = ["test"] [tool.coverage.run] source = ["wheel"] omit = ["*/vendored/*"] +exclude_also = [ + "@overload", + "if TYPE_CHECKING:" +] [tool.coverage.report] show_missing = true