diff --git a/nf_core/components/components_utils.py b/nf_core/components/components_utils.py index cd446fe258..eec533ce60 100644 --- a/nf_core/components/components_utils.py +++ b/nf_core/components/components_utils.py @@ -1,7 +1,7 @@ import logging import re from pathlib import Path -from typing import List, Optional, Tuple, Union +from typing import List, Optional, Tuple import questionary import rich.prompt @@ -23,7 +23,7 @@ def get_repo_info(directory: str, use_prompt: Optional[bool] = True) -> Tuple[st raise UserWarning(f"Could not find directory: {directory}") # Try to find the root directory - base_dir: Union[str, Path] = nf_core.utils.determine_base_dir(directory) + base_dir: str = nf_core.utils.determine_base_dir(directory) # Figure out the repository type from the .nf-core.yml config file if we can config_fn, tools_config = nf_core.utils.load_tools_config(base_dir)