Skip to content

Commit 3f65ed4

Browse files
committed
chore: improve typesafety
1 parent 09cdc7c commit 3f65ed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

freqtrade/data/btanalysis/bt_fileutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def load_file_from_zip(zip_path: Path, filename: str) -> bytes:
430430
raise ValueError(f"Bad zip file: {zip_path}.") from None
431431

432432

433-
def load_backtest_analysis_data(backtest_dir: Path, name: str):
433+
def load_backtest_analysis_data(backtest_dir: Path, name: Literal["signals", "rejected", "exited"]):
434434
"""
435435
Load backtest analysis data either from a pickle file or from within a zip file
436436
:param backtest_dir: Directory containing backtest results

0 commit comments

Comments
 (0)