Commit 96f0593c authored by Aarni Koskela's avatar Aarni Koskela

read_info_from_image: add type

parent b2c57489
from __future__ import annotations
import datetime
import pytz
......@@ -669,7 +671,7 @@ IGNORED_INFO_KEYS = {
}
def read_info_from_image(image):
def read_info_from_image(image: Image.Image) -> tuple[str | None, dict]:
items = image.info or {}
geninfo = items.pop('parameters', None)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment