Skip to content

Commit

Permalink
fixed compatibility with Python3.8
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Piskun <[email protected]>
  • Loading branch information
bigcat88 committed Dec 30, 2023
1 parent 6de326f commit 47187de
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pillow_heif/_lib_info.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Functions to get versions of underlying libraries."""

import typing

try:
import _pillow_heif
except ImportError as ex:
Expand All @@ -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
Expand Down

0 comments on commit 47187de

Please sign in to comment.