Skip to content

Commit

Permalink
test: Fix exclude_lines for coverage
Browse files Browse the repository at this point in the history
`exclude_lines` was only considering TYPE_CHECKING if it was preceded
with at least one space.
  • Loading branch information
aucampia committed Aug 21, 2022
1 parent a39d143 commit 6f5e2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -39,7 +39,7 @@ exclude_lines =
pragma: no cover

# TYPE_CHECKING guarded code only affects type checkers.
^ +if (False|TYPE_CHECKING):
^ *if (False|TYPE_CHECKING):
# constant used in protocols and abstract methods, does not run anything
# and has no side effects.
^ +\.\.\.$
Expand Down

0 comments on commit 6f5e2ce

Please sign in to comment.