Skip to content

Commit 689a6df

Browse files
committed
fix type annotation for <= 3.9
1 parent 0794199 commit 689a6df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

simple_ddl_parser/dialects/snowflake.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
from typing import List
1+
from typing import List, Union
22

33
from simple_ddl_parser.utils import remove_par
44

55

66
# todo: move to utils module
7-
def convert_to_python_bool(value: str) -> bool | str:
7+
def convert_to_python_bool(value: str) -> Union[bool, str]:
88
value = value.lower().strip()
99
if value == "true":
1010
return True
@@ -13,7 +13,7 @@ def convert_to_python_bool(value: str) -> bool | str:
1313
return value
1414

1515

16-
def convert_to_python_int(value: str) -> int | str:
16+
def convert_to_python_int(value: str) -> Union[int, str]:
1717
try:
1818
return int(value)
1919
except Exception:

0 commit comments

Comments
 (0)