From 6bacbed6c5d5ebf61d24aed224a49f56b4d880a3 Mon Sep 17 00:00:00 2001 From: didier Date: Sat, 13 Mar 2021 23:29:31 +0000 Subject: [PATCH] Mypy strikes back --- gamestonk_terminal/prediction_techniques/pred_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamestonk_terminal/prediction_techniques/pred_helper.py b/gamestonk_terminal/prediction_techniques/pred_helper.py index 9d7c30ac119..9c50b0d8e70 100644 --- a/gamestonk_terminal/prediction_techniques/pred_helper.py +++ b/gamestonk_terminal/prediction_techniques/pred_helper.py @@ -42,7 +42,7 @@ def print_prediction_kpis(real, pred): print(f"RMSE: {mean_squared_error(real, pred, squared=False):.3f}") -def price_prediction_backtesting_color(val: int) -> str: +def price_prediction_backtesting_color(val: list) -> str: err_pct = 100 * (val[0] - val[1]) / val[1] if val[0] > val[1]: s_err_pct = f" {Fore.GREEN} +{err_pct:.2f} %"