Skip to content

Commit 4bfb9df

Browse files
aseembits93KRRT7
authored andcommitted
quick fix for py39
1 parent 0ba52ea commit 4bfb9df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codeflash/cli_cmds/cmd_init.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,8 @@ def enter_api_key_and_save_to_rc() -> None:
855855

856856

857857
def create_bubble_sort_file_and_test(args: Namespace) -> tuple[str, str]:
858-
bubble_sort_content = """def sorter(arr: list[int] | list[float]) -> list[int] | list[float]:
858+
bubble_sort_content = """from typing import Union, List
859+
def sorter(arr: Union[List[int],List[float]]) -> Union[List[int],List[float]]:
859860
for i in range(len(arr)):
860861
for j in range(len(arr) - 1):
861862
if arr[j] > arr[j + 1]:

0 commit comments

Comments
 (0)