Skip to content

Commit

Permalink
Exclude TYPE_CHECKING blocks from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Jan 9, 2024
1 parent 7cda033 commit 5b94ea2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ omit = [
exclude_also = [
# Don't complain about abstract methods, they aren't run
"@(abc\\.)?abstractmethod",
# Imports only used by type checkers
"if TYPE_CHECKING:",
]

[tool.mypy]
Expand Down

0 comments on commit 5b94ea2

Please sign in to comment.