From 92194910ea2f730d25f3e1ca97561f33af7390e8 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Thu, 23 May 2024 10:27:02 +0200 Subject: [PATCH] docs: fix docstring --- geotribu_cli/images/optim_pillow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/geotribu_cli/images/optim_pillow.py b/geotribu_cli/images/optim_pillow.py index b0f976f..6cc187e 100644 --- a/geotribu_cli/images/optim_pillow.py +++ b/geotribu_cli/images/optim_pillow.py @@ -7,6 +7,7 @@ # standard library import logging from pathlib import Path +from typing import Optional # 3rd party try: @@ -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).