mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-29 17:33:08 +03:00
Removed no cover pragmas
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
68db96981c
commit
d02a778efd
|
@ -217,7 +217,7 @@ if hasattr(core, "DEFAULT_STRATEGY"):
|
||||||
# Registries
|
# Registries
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from . import ImageFile # pragma: no cover
|
from . import ImageFile
|
||||||
ID: list[str] = []
|
ID: list[str] = []
|
||||||
OPEN: dict[
|
OPEN: dict[
|
||||||
str,
|
str,
|
||||||
|
@ -2890,7 +2890,7 @@ class ImageTransformHandler:
|
||||||
image: Image,
|
image: Image,
|
||||||
**options: dict[str, str | int | tuple[int, ...] | list[int]],
|
**options: dict[str, str | int | tuple[int, ...] | list[int]],
|
||||||
) -> Image:
|
) -> Image:
|
||||||
pass # pragma: no cover
|
pass
|
||||||
|
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
|
@ -3653,7 +3653,7 @@ atexit.register(core.clear_cache)
|
||||||
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
_ExifBase = MutableMapping[int, Any] # pragma: no cover
|
_ExifBase = MutableMapping[int, Any]
|
||||||
else:
|
else:
|
||||||
_ExifBase = MutableMapping
|
_ExifBase = MutableMapping
|
||||||
|
|
||||||
|
|
|
@ -246,7 +246,7 @@ class PdfArray(List[Any]):
|
||||||
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
_DictBase = collections.UserDict[Union[str, bytes], Any] # pragma: no cover
|
_DictBase = collections.UserDict[Union[str, bytes], Any]
|
||||||
else:
|
else:
|
||||||
_DictBase = collections.UserDict
|
_DictBase = collections.UserDict
|
||||||
|
|
||||||
|
|
|
@ -476,7 +476,7 @@ def _register_basic(idx_fmt_name):
|
||||||
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
_IFDv2Base = MutableMapping[int, Any] # pragma: no cover
|
_IFDv2Base = MutableMapping[int, Any]
|
||||||
else:
|
else:
|
||||||
_IFDv2Base = MutableMapping
|
_IFDv2Base = MutableMapping
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user