]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
refactor(qav3): refine type definition
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 15 Jun 2025 19:07:51 +0000 (21:07 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 15 Jun 2025 19:07:51 +0000 (21:07 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py
quickadapter/user_data/strategies/Utils.py

index 76b6492274d59e07062513bf3819e43a45945e55..d9bbac3233e554524d67f4429fd33f165ddbf40b 100644 (file)
@@ -1366,7 +1366,7 @@ def zigzag(
         last_pivot_pos = pos
         reset_candidate_pivot()
 
-    slopes_ok_cache: dict[tuple[int, int, int], bool] = {}
+    slopes_ok_cache: dict[tuple[int, int, bool, int, float], bool] = {}
 
     def get_slope_ok(
         pos: int,
index 2dcb20ef52f144364072b883833675c5224b7def..4f1c1dbb43b9e421391d35d8d5a6d09ad0361b16 100644 (file)
@@ -490,7 +490,7 @@ def zigzag(
         last_pivot_pos = pos
         reset_candidate_pivot()
 
-    slopes_ok_cache: dict[tuple[int, int, int], bool] = {}
+    slopes_ok_cache: dict[tuple[int, int, bool, int, float], bool] = {}
 
     def get_slope_ok(
         pos: int,