Updated return type

This commit is contained in:
Andrew Murray 2025-06-30 18:27:49 +10:00
parent a0a1ff14c4
commit d4162f8505
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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