Skip to content

Commit d02a778

Browse files
radarherehugovk
andauthored
Removed no cover pragmas
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 68db969 commit d02a778

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/PIL/Image.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class Quantize(IntEnum):
217217
# Registries
218218

219219
if TYPE_CHECKING:
220-
from . import ImageFile # pragma: no cover
220+
from . import ImageFile
221221
ID: list[str] = []
222222
OPEN: dict[
223223
str,
@@ -2890,7 +2890,7 @@ def transform(
28902890
image: Image,
28912891
**options: dict[str, str | int | tuple[int, ...] | list[int]],
28922892
) -> Image:
2893-
pass # pragma: no cover
2893+
pass
28942894

28952895

28962896
# --------------------------------------------------------------------
@@ -3653,7 +3653,7 @@ def _apply_env_variables(env=None):
36533653

36543654

36553655
if TYPE_CHECKING:
3656-
_ExifBase = MutableMapping[int, Any] # pragma: no cover
3656+
_ExifBase = MutableMapping[int, Any]
36573657
else:
36583658
_ExifBase = MutableMapping
36593659

src/PIL/PdfParser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def __bytes__(self):
246246

247247

248248
if TYPE_CHECKING:
249-
_DictBase = collections.UserDict[Union[str, bytes], Any] # pragma: no cover
249+
_DictBase = collections.UserDict[Union[str, bytes], Any]
250250
else:
251251
_DictBase = collections.UserDict
252252

src/PIL/TiffImagePlugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def _register_basic(idx_fmt_name):
476476

477477

478478
if TYPE_CHECKING:
479-
_IFDv2Base = MutableMapping[int, Any] # pragma: no cover
479+
_IFDv2Base = MutableMapping[int, Any]
480480
else:
481481
_IFDv2Base = MutableMapping
482482

0 commit comments

Comments
 (0)