From 68fbab5c326355170424d07f60eaf3b8d94a21c3 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 9 Apr 2025 19:31:30 +0200 Subject: [PATCH] test: fix type-problem in tests --- tests/plugins/test_protections.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/plugins/test_protections.py b/tests/plugins/test_protections.py index bec2671eb..ef2c7e1d3 100644 --- a/tests/plugins/test_protections.py +++ b/tests/plugins/test_protections.py @@ -19,8 +19,8 @@ def generate_mock_trade( fee: float, is_open: bool, exit_reason: str = ExitType.EXIT_SIGNAL, - min_ago_open: int = None, - min_ago_close: int = None, + min_ago_open: int | None = None, + min_ago_close: int | None = None, profit_rate: float = 0.9, is_short: bool = False, ):