Skip to content

Commit d4162f8

Browse files
committed
Updated return type
1 parent a0a1ff1 commit d4162f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/test_file_mpo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def test_save_xmp() -> None:
316316
im = Image.new("RGB", (1, 1))
317317
im2 = Image.new("RGB", (1, 1), "#f00")
318318

319-
def roundtrip_xmp():
319+
def roundtrip_xmp() -> list[Any]:
320320
im_reloaded = roundtrip(im, xmp=b"Default", save_all=True, append_images=[im2])
321321
xmp = [im_reloaded.info["xmp"]]
322322
im_reloaded.seek(1)

src/PIL/Image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2600,7 +2600,7 @@ def save(
26002600
if open_fp:
26012601
fp.close()
26022602

2603-
def _attach_default_encoderinfo(self, im: Image) -> Any:
2603+
def _attach_default_encoderinfo(self, im: Image) -> dict[str, Any]:
26042604
encoderinfo = getattr(self, "encoderinfo", {})
26052605
self.encoderinfo = {**im._default_encoderinfo, **encoderinfo}
26062606
return encoderinfo

0 commit comments

Comments
 (0)