mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-16 12:51:14 +00:00
chore: improve typesafety
This commit is contained in:
@@ -430,7 +430,7 @@ def load_file_from_zip(zip_path: Path, filename: str) -> bytes:
|
|||||||
raise ValueError(f"Bad zip file: {zip_path}.") from None
|
raise ValueError(f"Bad zip file: {zip_path}.") from None
|
||||||
|
|
||||||
|
|
||||||
def load_backtest_analysis_data(backtest_dir: Path, name: str):
|
def load_backtest_analysis_data(backtest_dir: Path, name: Literal["signals", "rejected", "exited"]):
|
||||||
"""
|
"""
|
||||||
Load backtest analysis data either from a pickle file or from within a zip file
|
Load backtest analysis data either from a pickle file or from within a zip file
|
||||||
:param backtest_dir: Directory containing backtest results
|
:param backtest_dir: Directory containing backtest results
|
||||||
|
|||||||
Reference in New Issue
Block a user