From 47187deb468f7625e1cedc57ae9d624ec0908a1c Mon Sep 17 00:00:00 2001 From: Alexander Piskun Date: Sat, 30 Dec 2023 11:39:09 +0300 Subject: [PATCH] fixed compatibility with Python3.8 Signed-off-by: Alexander Piskun --- pillow_heif/_lib_info.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pillow_heif/_lib_info.py b/pillow_heif/_lib_info.py index 70c08aca..a2d0bc03 100644 --- a/pillow_heif/_lib_info.py +++ b/pillow_heif/_lib_info.py @@ -1,7 +1,5 @@ """Functions to get versions of underlying libraries.""" -import typing - try: import _pillow_heif except ImportError as ex: @@ -15,7 +13,7 @@ def libheif_version() -> str: return _pillow_heif.get_lib_info()["libheif"] -def libheif_info() -> dict[str, typing.Union[str, dict[str, str]]]: +def libheif_info() -> dict: """Returns a dictionary with version information. The keys `libheif`, `HEIF`, `AVIF`, `encoders`, `decoders` are always present, but values for all except