Skip to content

Commit

Permalink
Ignore conditionals related to type checking
Browse files Browse the repository at this point in the history
The TYPE_CHECKING constant is always False at runtime. Thus the other
case cannot be covered by unit tests.
  • Loading branch information
treiher committed Aug 11, 2020
1 parent cb1f242 commit b97609d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ exclude_lines =
assert False
def __repr__
def __str__
if TYPE_CHECKING:
raise NotImplementedError
return NotImplemented

0 comments on commit b97609d

Please sign in to comment.