Skip to content

Commit

Permalink
Use type hint compatible with 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Jul 4, 2023
1 parent 2eea760 commit 8340b1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geotribu_cli/utils/str2bool.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# Standard library
import logging
from typing import Optional

# #############################################################################
# ########## Globals ###############
Expand All @@ -24,7 +25,7 @@
# ##################################


def str2bool(input_var: str, raise_exc: bool = False) -> bool | None:
def str2bool(input_var: str, raise_exc: bool = False) -> Optional[bool]:
"""Determine if a string is a bool and, if so, convert it.
Args:
Expand Down

0 comments on commit 8340b1b

Please sign in to comment.