Skip to content

Commit

Permalink
docs: fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed May 23, 2024
1 parent e7cebf8 commit 9219491
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geotribu_cli/images/optim_pillow.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# standard library
import logging
from pathlib import Path
from typing import Optional

# 3rd party
try:
Expand Down Expand Up @@ -36,7 +37,7 @@ def pil_redimensionner_image(
image_path_or_url: Path,
largeur_max_paysage: int = 1000,
hauteur_max_portrait: int = 600,
) -> Path:
) -> Optional[Path]:
"""Redimensionne l'image dont le chemin est passé en entrée en tenant compte d'une
contrainte de largeur max pour les images orientées paysage (largeur > hauteur) et
une hauteur max pour les images orientées portrait (hauteur > largeur).
Expand Down

0 comments on commit 9219491

Please sign in to comment.