Skip to content

Commit

Permalink
fix: Python 3.9 type hint compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Jan 8, 2024
1 parent f720bc6 commit 051a551
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geotribu_cli/comments/comments_open.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import logging
import sys
from os import getenv
from typing import Optional

# 3rd party
from rich import print
Expand All @@ -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:
Expand Down

0 comments on commit 051a551

Please sign in to comment.