diff --git a/checker/types.py b/checker/types.py index 3d31011..db1a067 100644 --- a/checker/types.py +++ b/checker/types.py @@ -1,4 +1,7 @@ -def try_float(value: str) -> int | float | str: +from typing import Union + + +def try_float(value: str) -> Union[int, float, str]: try: return float(value) except: