read_info_from_image: add type
This commit is contained in:
parent
b2c574891f
commit
96f0593c8f
@ -1,3 +1,5 @@
|
|||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import pytz
|
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 {}
|
items = image.info or {}
|
||||||
|
|
||||||
geninfo = items.pop('parameters', None)
|
geninfo = items.pop('parameters', None)
|
||||||
|
Loading…
Reference in New Issue
Block a user