|
20 | 20 | from .filename_parser import TypesFilenamesError, _stringify_path, splitext_addext, types_filenames
|
21 | 21 | from .openers import ImageOpener
|
22 | 22 |
|
23 |
| -if ty.TYPE_CHECKING: # pragma: no cover |
| 23 | +if ty.TYPE_CHECKING: |
24 | 24 | from .filename_parser import ExtensionSpec, FileSpec
|
25 | 25 |
|
26 | 26 | FileSniff = ty.Tuple[bytes, str]
|
@@ -54,13 +54,13 @@ def from_header(klass: type[HdrT], header: FileBasedHeader | ty.Mapping | None =
|
54 | 54 |
|
55 | 55 | @classmethod
|
56 | 56 | def from_fileobj(klass: type[HdrT], fileobj: io.IOBase) -> HdrT:
|
57 |
| - raise NotImplementedError # pragma: no cover |
| 57 | + raise NotImplementedError |
58 | 58 |
|
59 | 59 | def write_to(self, fileobj: io.IOBase) -> None:
|
60 |
| - raise NotImplementedError # pragma: no cover |
| 60 | + raise NotImplementedError |
61 | 61 |
|
62 | 62 | def __eq__(self, other: object) -> bool:
|
63 |
| - raise NotImplementedError # pragma: no cover |
| 63 | + raise NotImplementedError |
64 | 64 |
|
65 | 65 | def __ne__(self, other: object) -> bool:
|
66 | 66 | return not self == other
|
@@ -251,7 +251,7 @@ def from_filename(klass: type[ImgT], filename: FileSpec) -> ImgT:
|
251 | 251 |
|
252 | 252 | @classmethod
|
253 | 253 | def from_file_map(klass: type[ImgT], file_map: FileMap) -> ImgT:
|
254 |
| - raise NotImplementedError # pragma: no cover |
| 254 | + raise NotImplementedError |
255 | 255 |
|
256 | 256 | @classmethod
|
257 | 257 | def filespec_to_file_map(klass, filespec: FileSpec) -> FileMap:
|
@@ -308,7 +308,7 @@ def to_filename(self, filename: FileSpec, **kwargs) -> None:
|
308 | 308 | self.to_file_map(**kwargs)
|
309 | 309 |
|
310 | 310 | def to_file_map(self, file_map: FileMap | None = None, **kwargs) -> None:
|
311 |
| - raise NotImplementedError # pragma: no cover |
| 311 | + raise NotImplementedError |
312 | 312 |
|
313 | 313 | @classmethod
|
314 | 314 | def make_file_map(klass, mapping: ty.Mapping[str, str | io.IOBase] | None = None) -> FileMap:
|
@@ -373,7 +373,7 @@ def from_image(klass: type[ImgT], img: FileBasedImage) -> ImgT:
|
373 | 373 | img : ``FileBasedImage`` instance
|
374 | 374 | Image, of our own class
|
375 | 375 | """
|
376 |
| - raise NotImplementedError # pragma: no cover |
| 376 | + raise NotImplementedError |
377 | 377 |
|
378 | 378 | @classmethod
|
379 | 379 | def _sniff_meta_for(
|
|
0 commit comments