Skip to content

Commit

Permalink
Make type hint compatible with Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Jul 4, 2023
1 parent 3aca333 commit 32e288d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geotribu_cli/images/optim_tinify.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import sys
from os import getenv
from pathlib import Path
from typing import Union
from urllib.parse import unquote, urlsplit

# 3rd party
Expand Down Expand Up @@ -53,7 +54,7 @@ def tinify_check_api_limit() -> int:


def optimize_with_tinify(
image_path_or_url: str | Path, image_type: str = "body"
image_path_or_url: Union[str, Path], image_type: str = "body"
) -> Path:
"""Optimize image using Tinify API (tinypng.com).
Expand Down

0 comments on commit 32e288d

Please sign in to comment.