Skip to content

Commit

Permalink
Removed no cover pragmas
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo van Kemenade <[email protected]>
  • Loading branch information
radarhere and hugovk authored Feb 10, 2024
1 parent 68db969 commit d02a778
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class Quantize(IntEnum):
# Registries

if TYPE_CHECKING:
from . import ImageFile # pragma: no cover
from . import ImageFile

Check warning on line 220 in src/PIL/Image.py

View check run for this annotation

Codecov / codecov/patch

src/PIL/Image.py#L220

Added line #L220 was not covered by tests
ID: list[str] = []
OPEN: dict[
str,
Expand Down Expand Up @@ -2890,7 +2890,7 @@ def transform(
image: Image,
**options: dict[str, str | int | tuple[int, ...] | list[int]],
) -> Image:
pass # pragma: no cover
pass

Check warning on line 2893 in src/PIL/Image.py

View check run for this annotation

Codecov / codecov/patch

src/PIL/Image.py#L2893

Added line #L2893 was not covered by tests


# --------------------------------------------------------------------
Expand Down Expand Up @@ -3653,7 +3653,7 @@ def _apply_env_variables(env=None):


if TYPE_CHECKING:
_ExifBase = MutableMapping[int, Any] # pragma: no cover
_ExifBase = MutableMapping[int, Any]

Check warning on line 3656 in src/PIL/Image.py

View check run for this annotation

Codecov / codecov/patch

src/PIL/Image.py#L3656

Added line #L3656 was not covered by tests
else:
_ExifBase = MutableMapping

Expand Down
2 changes: 1 addition & 1 deletion src/PIL/PdfParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def __bytes__(self):


if TYPE_CHECKING:
_DictBase = collections.UserDict[Union[str, bytes], Any] # pragma: no cover
_DictBase = collections.UserDict[Union[str, bytes], Any]

Check warning on line 249 in src/PIL/PdfParser.py

View check run for this annotation

Codecov / codecov/patch

src/PIL/PdfParser.py#L249

Added line #L249 was not covered by tests
else:
_DictBase = collections.UserDict

Expand Down
2 changes: 1 addition & 1 deletion src/PIL/TiffImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def _register_basic(idx_fmt_name):


if TYPE_CHECKING:
_IFDv2Base = MutableMapping[int, Any] # pragma: no cover
_IFDv2Base = MutableMapping[int, Any]

Check warning on line 479 in src/PIL/TiffImagePlugin.py

View check run for this annotation

Codecov / codecov/patch

src/PIL/TiffImagePlugin.py#L479

Added line #L479 was not covered by tests
else:
_IFDv2Base = MutableMapping

Expand Down

0 comments on commit d02a778

Please sign in to comment.