We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0794199 commit 689a6dfCopy full SHA for 689a6df
simple_ddl_parser/dialects/snowflake.py
@@ -1,10 +1,10 @@
1
-from typing import List
+from typing import List, Union
2
3
from simple_ddl_parser.utils import remove_par
4
5
6
# todo: move to utils module
7
-def convert_to_python_bool(value: str) -> bool | str:
+def convert_to_python_bool(value: str) -> Union[bool, str]:
8
value = value.lower().strip()
9
if value == "true":
10
return True
@@ -13,7 +13,7 @@ def convert_to_python_bool(value: str) -> bool | str:
13
return value
14
15
16
-def convert_to_python_int(value: str) -> int | str:
+def convert_to_python_int(value: str) -> Union[int, str]:
17
try:
18
return int(value)
19
except Exception:
0 commit comments