Skip to content

Commit 20dbb6b

Browse files
committed
exclude notimplementederrors from coverage
1 parent e5d482a commit 20dbb6b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/zarr/core/dtype/wrapper.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def from_native_dtype(cls: type[Self], dtype: TBaseDType) -> Self:
120120
TypeError
121121
If the native data type is not consistent with the wrapped data type.
122122
"""
123-
raise NotImplementedError
123+
raise NotImplementedError # pragma: no cover
124124

125125
@abstractmethod
126126
def to_native_dtype(self: Self) -> TDType_co:
@@ -132,7 +132,7 @@ def to_native_dtype(self: Self) -> TDType_co:
132132
TDType
133133
The native data type wrapped by this ZDType.
134134
"""
135-
raise NotImplementedError
135+
raise NotImplementedError # pragma: no cover
136136

137137
@classmethod
138138
@abstractmethod
@@ -187,7 +187,7 @@ def to_json(self, zarr_format: ZarrFormat) -> DTypeSpec_V2 | DTypeSpec_V3:
187187
DTypeJSON_V2 | DTypeJSON_V3
188188
The JSON-serializable representation of the wrapped data type
189189
"""
190-
raise NotImplementedError
190+
raise NotImplementedError # pragma: no cover
191191

192192
@abstractmethod
193193
def _check_scalar(self, data: object) -> bool:
@@ -204,7 +204,7 @@ def _check_scalar(self, data: object) -> bool:
204204
Bool
205205
True if the object is valid, False otherwise.
206206
"""
207-
raise NotImplementedError
207+
raise NotImplementedError # pragma: no cover
208208

209209
@abstractmethod
210210
def cast_scalar(self, data: object) -> TScalar_co:
@@ -224,7 +224,7 @@ def cast_scalar(self, data: object) -> TScalar_co:
224224
TScalar
225225
The cast value.
226226
"""
227-
raise NotImplementedError
227+
raise NotImplementedError # pragma: no cover
228228

229229
@abstractmethod
230230
def default_scalar(self) -> TScalar_co:
@@ -240,7 +240,7 @@ def default_scalar(self) -> TScalar_co:
240240
TScalar
241241
The default value for this data type.
242242
"""
243-
raise NotImplementedError
243+
raise NotImplementedError # pragma: no cover
244244

245245
@abstractmethod
246246
def from_json_scalar(self: Self, data: JSON, *, zarr_format: ZarrFormat) -> TScalar_co:
@@ -260,7 +260,7 @@ def from_json_scalar(self: Self, data: JSON, *, zarr_format: ZarrFormat) -> TSca
260260
TScalar
261261
The deserialized scalar value.
262262
"""
263-
raise NotImplementedError
263+
raise NotImplementedError # pragma: no cover
264264

265265
@abstractmethod
266266
def to_json_scalar(self, data: object, *, zarr_format: ZarrFormat) -> JSON:
@@ -283,7 +283,7 @@ def to_json_scalar(self, data: object, *, zarr_format: ZarrFormat) -> JSON:
283283
JSON
284284
The JSON-serialized scalar.
285285
"""
286-
raise NotImplementedError
286+
raise NotImplementedError # pragma: no cover
287287

288288

289289
def scalar_failed_type_check_msg(

0 commit comments

Comments
 (0)