mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-09 15:52:37 +03:00
Updated return type
This commit is contained in:
parent
a0a1ff14c4
commit
d4162f8505
|
@ -316,7 +316,7 @@ def test_save_xmp() -> None:
|
|||
im = Image.new("RGB", (1, 1))
|
||||
im2 = Image.new("RGB", (1, 1), "#f00")
|
||||
|
||||
def roundtrip_xmp():
|
||||
def roundtrip_xmp() -> list[Any]:
|
||||
im_reloaded = roundtrip(im, xmp=b"Default", save_all=True, append_images=[im2])
|
||||
xmp = [im_reloaded.info["xmp"]]
|
||||
im_reloaded.seek(1)
|
||||
|
|
|
@ -2600,7 +2600,7 @@ class Image:
|
|||
if open_fp:
|
||||
fp.close()
|
||||
|
||||
def _attach_default_encoderinfo(self, im: Image) -> Any:
|
||||
def _attach_default_encoderinfo(self, im: Image) -> dict[str, Any]:
|
||||
encoderinfo = getattr(self, "encoderinfo", {})
|
||||
self.encoderinfo = {**im._default_encoderinfo, **encoderinfo}
|
||||
return encoderinfo
|
||||
|
|
Loading…
Reference in New Issue
Block a user