Skip to content

Commit

Permalink
change list[Path] to list[str] for output_formats typing
Browse files Browse the repository at this point in the history
  • Loading branch information
yaseminbridges committed Jun 10, 2024
1 parent 818edf7 commit c4db66f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pheval_exomiser/prepare/create_batch_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ExomiserCommandLineArguments:
output_formats: List[str] or None = None


def get_all_files_from_output_opt_directory(output_options_dir: Path) -> list[Path] or None:
def get_all_files_from_output_opt_directory(output_options_dir: Path) -> List[Path] or None:
"""Obtain all output options files if directory is specified - otherwise returns none."""
return None if output_options_dir is None else all_files(output_options_dir)

Expand All @@ -46,11 +46,11 @@ def __init__(
phenopacket_path: Path,
phenopacket: Phenopacket or Family,
variant_analysis: bool,
output_options_dir_files: list[Path] or None,
output_options_dir_files: List[Path] or None,
output_options_file: Path or None,
raw_results_dir: Path or None,
analysis_yaml: Path or None,
output_formats: list[Path] or None,
output_formats: List[str] or None,
):
self.environment = environment
self.phenopacket_path = phenopacket_path
Expand Down Expand Up @@ -148,8 +148,8 @@ def create_command_arguments(
output_options_dir: Path or None = None,
output_options_file: Path or None = None,
analysis_yaml: Path or None = None,
output_formats: list[Path] or None = None,
) -> list[ExomiserCommandLineArguments]:
output_formats: List[str] or None = None,
) -> List[ExomiserCommandLineArguments]:
"""Return a list of Exomiser command line arguments for a directory of phenopackets."""
phenopacket_paths = files_with_suffix(phenopacket_dir, ".json")
commands = []
Expand Down Expand Up @@ -281,7 +281,7 @@ class BatchFileWriter:

def __init__(
self,
command_arguments_list: list[ExomiserCommandLineArguments],
command_arguments_list: List[ExomiserCommandLineArguments],
variant_analysis: bool,
output_dir: Path,
batch_prefix: str,
Expand Down

0 comments on commit c4db66f

Please sign in to comment.