Skip to content

Commit 384f5f2

Browse files
committed
build: oops, some 'if's are really line pragmas
1 parent a7224af commit 384f5f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

metacov.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,14 @@ exclude_lines =
5555

5656
# Lines that we can't run during metacov.
5757
pytest.mark.skipif\(env.METACOV
58+
if not env.METACOV:
5859

5960
# These lines only happen if tests fail.
6061
raise AssertionError
6162
pragma: only failure
6263

6364
# Not-real code for type checking
65+
if TYPE_CHECKING:
6466
class .*\(Protocol\):
6567
@overload
6668

@@ -84,8 +86,6 @@ partial_branches =
8486
if env.TESTING:
8587
pragma: partial metacov
8688
if env.METACOV:
87-
if not env.METACOV:
88-
if TYPE_CHECKING:
8989

9090
precision = 3
9191

0 commit comments

Comments
 (0)