diff --git a/geotribu_cli/comments/comments_open.py b/geotribu_cli/comments/comments_open.py index 29f5bb2..d7263bf 100644 --- a/geotribu_cli/comments/comments_open.py +++ b/geotribu_cli/comments/comments_open.py @@ -10,6 +10,7 @@ import logging import sys from os import getenv +from typing import Optional # 3rd party from rich import print @@ -34,7 +35,7 @@ # ################################ -def find_comment_by_id(comment_id: int) -> Comment | None: +def find_comment_by_id(comment_id: int) -> Optional[Comment]: """Trouve un commentaire parmi les derniers téléchargés d'après son id. Args: