Skip to content

Commit

Permalink
tests: add TYPE_CHECKING to coverage excludes (#2310)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelotduarte authored Mar 22, 2024
1 parent af7f0b9 commit 5785f7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ exclude_also = [

# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",

# TYPE_CHECKING block is never executed during pytest run
"if TYPE_CHECKING:",
]
ignore_errors = true
omit = [
Expand Down

0 comments on commit 5785f7f

Please sign in to comment.