@@ -411,7 +411,7 @@ def _revise_anonymous_flow(flow_content: str, first_message: str) -> str:
411411 # return re.sub(r"flow\s*$", f"flow anonymous_{uuid.uuid4().hex}", flow_content)
412412
413413
414- def _get_flow_ids (content : str ) -> list :
414+ def _get_flow_ids (content : str ) -> List :
415415 """Returns the flow ids in the content.
416416
417417 Args:
@@ -442,7 +442,7 @@ def _get_flow_ids(content: str) -> list:
442442 return root_flow_pattern .findall (content )
443443
444444
445- def _get_flow_ids_from_newlines (new_lines : list ) -> list :
445+ def _get_flow_ids_from_newlines (new_lines : List ) -> List :
446446 """Returns the flow ids in the new lines.
447447 Args:
448448 new_lines (list): The new lines to search for flow ids.
@@ -457,13 +457,13 @@ def _get_flow_ids_from_newlines(new_lines: list) -> list:
457457 return _get_flow_ids (content )
458458
459459
460- def _add_imports (new_lines : list , libraries : list [str ]) -> list :
460+ def _add_imports (new_lines : List , libraries : List [str ]) -> List :
461461 for library in libraries :
462462 new_lines .insert (0 , f"import { library } \n " )
463463 return new_lines
464464
465465
466- def _add_main_co_file (file_path : str , libraries : Optional [list [str ]] = None ) -> bool :
466+ def _add_main_co_file (file_path : str , libraries : Optional [List [str ]] = None ) -> bool :
467467 """Add the main co file to the given file path.
468468 Args:
469469 file_path (str): The path to the file to add the main co file to.
@@ -485,7 +485,7 @@ def _add_main_co_file(file_path: str, libraries: Optional[list[str]] = None) ->
485485 return _write_to_file (file_path , new_lines )
486486
487487
488- def _generate_main_flow (new_lines : list ) -> list :
488+ def _generate_main_flow (new_lines : List ) -> List :
489489 """Adds a 'main' flow to the new lines that activates all other flows.
490490
491491 The 'main' flow is added at the beginning of the new lines. It includes an 'activate' command for each flow id found in the new lines.
@@ -524,14 +524,14 @@ def _generate_main_flow(new_lines: list) -> list:
524524 return new_lines
525525
526526
527- def _add_active_decorator (new_lines : list ) -> list :
527+ def _add_active_decorator (new_lines : List ) -> List :
528528 """Adds an '@active' decorator above each flow id in the new lines.
529529
530530 Args:
531- new_lines (list ): The lines to add the decorators to.
531+ new_lines (List ): The lines to add the decorators to.
532532
533533 Returns:
534- list : The lines with the decorators added.
534+ List : The lines with the decorators added.
535535 """
536536 decorated_lines = []
537537
@@ -922,7 +922,7 @@ def _create_main_co_if_not_exists(file_path):
922922 return main_file_path
923923
924924
925- def _remove_files_from_path (path , filenames : list [str ]):
925+ def _remove_files_from_path (path , filenames : List [str ]):
926926 """Remove files from the path.
927927
928928 Args:
0 commit comments