Skip to content

Commit fe515ca

Browse files
dstansbyjakirkham
andauthored
Move code coverage skips to branches
Co-authored-by: jakirkham <[email protected]>
1 parent 06758f2 commit fe515ca

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

numcodecs/checksum32.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
from .compat import ensure_contiguous_ndarray, ndarray_copy
1010
from .jenkins import jenkins_lookup3
1111

12-
if TYPE_CHECKING:
13-
from typing_extensions import Buffer # pragma: no cover
12+
if TYPE_CHECKING: # pragma: no cover
13+
from typing_extensions import Buffer
1414

1515
CHECKSUM_LOCATION = Literal['start', 'end']
1616

numcodecs/tests/test_zarr3.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
import numpy as np
66
import pytest
77

8-
if not TYPE_CHECKING:
9-
zarr = pytest.importorskip("zarr")
8+
if TYPE_CHECKING: # pragma: no cover
9+
import zarr
1010
else:
11+
zarr = pytest.importorskip("zarr")
1112
import zarr # pragma: no cover
1213

1314
import zarr.storage

0 commit comments

Comments
 (0)