chore: Fix remaining violations after merge

This commit is contained in:
Matthias
2024-10-06 08:28:55 +02:00
parent 2b1fc8725e
commit 78e9eac64a
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import logging import logging
from pathlib import Path from pathlib import Path
from typing import Any, Dict from typing import Any
from freqtrade.enums import RunMode from freqtrade.enums import RunMode
from freqtrade.exceptions import OperationalException from freqtrade.exceptions import OperationalException
+1 -1
View File
@@ -1,7 +1,7 @@
import logging import logging
import sys import sys
from pathlib import Path from pathlib import Path
from typing import Any, Dict, Optional from typing import Any
from freqtrade.constants import USERPATH_STRATEGIES from freqtrade.constants import USERPATH_STRATEGIES
from freqtrade.enums import RunMode from freqtrade.enums import RunMode
+2 -2
View File
@@ -1,6 +1,6 @@
import logging import logging
from pathlib import Path from pathlib import Path
from typing import Optional, Tuple from typing import Optional
import requests import requests
@@ -52,7 +52,7 @@ def download_and_install_ui(dest_folder: Path, dl_url: str, version: str):
f.write(version) 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/" base_url = "https://api.github.com/repos/freqtrade/frequi/"
# Get base UI Repo path # Get base UI Repo path
+4 -4
View File
@@ -1,7 +1,7 @@
import logging import logging
import secrets import secrets
from pathlib import Path from pathlib import Path
from typing import Any, Dict, List from typing import Any
from questionary import Separator, prompt from questionary import Separator, prompt
@@ -41,7 +41,7 @@ def ask_user_overwrite(config_path: Path) -> bool:
return answers["overwrite"] 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. Ask user a few questions to build the configuration.
Interactive questions built using https://github.com/tmbo/questionary 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.configuration.detect_environment import running_in_docker
from freqtrade.exchange import available_exchanges from freqtrade.exchange import available_exchanges
questions: List[Dict[str, Any]] = [ questions: list[dict[str, Any]] = [
{ {
"type": "confirm", "type": "confirm",
"name": "dry_run", "name": "dry_run",
@@ -216,7 +216,7 @@ def ask_user_config() -> Dict[str, Any]:
return answers 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 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 :param config_path: Path object for new config file. Should not exist yet