diff --git a/freqtrade/commands/build_config_commands.py b/freqtrade/commands/build_config_commands.py index 99071f431..63d313b70 100644 --- a/freqtrade/commands/build_config_commands.py +++ b/freqtrade/commands/build_config_commands.py @@ -1,6 +1,6 @@ import logging from pathlib import Path -from typing import Any, Dict +from typing import Any from freqtrade.enums import RunMode from freqtrade.exceptions import OperationalException diff --git a/freqtrade/commands/deploy_commands.py b/freqtrade/commands/deploy_commands.py index 0c9bbf063..0d188e514 100644 --- a/freqtrade/commands/deploy_commands.py +++ b/freqtrade/commands/deploy_commands.py @@ -1,7 +1,7 @@ import logging import sys from pathlib import Path -from typing import Any, Dict, Optional +from typing import Any from freqtrade.constants import USERPATH_STRATEGIES from freqtrade.enums import RunMode diff --git a/freqtrade/commands/deploy_ui.py b/freqtrade/commands/deploy_ui.py index e9a9d2c43..283834b12 100644 --- a/freqtrade/commands/deploy_ui.py +++ b/freqtrade/commands/deploy_ui.py @@ -1,6 +1,6 @@ import logging from pathlib import Path -from typing import Optional, Tuple +from typing import Optional import requests @@ -52,7 +52,7 @@ def download_and_install_ui(dest_folder: Path, dl_url: str, version: str): f.write(version) -def get_ui_download_url(version: Optional[str] = None) -> Tuple[str, str]: +def get_ui_download_url(version: Optional[str] = None) -> tuple[str, str]: base_url = "https://api.github.com/repos/freqtrade/frequi/" # Get base UI Repo path diff --git a/freqtrade/configuration/deploy_config.py b/freqtrade/configuration/deploy_config.py index cd10cd0d8..071ee0b11 100644 --- a/freqtrade/configuration/deploy_config.py +++ b/freqtrade/configuration/deploy_config.py @@ -1,7 +1,7 @@ import logging import secrets from pathlib import Path -from typing import Any, Dict, List +from typing import Any from questionary import Separator, prompt @@ -41,7 +41,7 @@ def ask_user_overwrite(config_path: Path) -> bool: return answers["overwrite"] -def ask_user_config() -> Dict[str, Any]: +def ask_user_config() -> dict[str, Any]: """ Ask user a few questions to build the configuration. Interactive questions built using https://github.com/tmbo/questionary @@ -51,7 +51,7 @@ def ask_user_config() -> Dict[str, Any]: from freqtrade.configuration.detect_environment import running_in_docker from freqtrade.exchange import available_exchanges - questions: List[Dict[str, Any]] = [ + questions: list[dict[str, Any]] = [ { "type": "confirm", "name": "dry_run", @@ -216,7 +216,7 @@ def ask_user_config() -> Dict[str, Any]: return answers -def deploy_new_config(config_path: Path, selections: Dict[str, Any]) -> None: +def deploy_new_config(config_path: Path, selections: dict[str, Any]) -> None: """ Applies selections to the template and writes the result to config_path :param config_path: Path object for new config file. Should not exist yet