From 9171fa03154bf954697ee12fc004a9737eef3367 Mon Sep 17 00:00:00 2001 From: kedhammar Date: Tue, 17 Oct 2023 16:19:53 +0200 Subject: [PATCH] revert minor tweak to prevent breaking --- nf_core/components/components_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)