From aa489f43a928f9c6bc86c7d2733a6f5bf1474454 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Tue, 19 Sep 2023 15:22:34 -0500 Subject: [PATCH] [python-package] fix mypy error about eval result tuples (#6105) --- python-package/lightgbm/callback.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-package/lightgbm/callback.py b/python-package/lightgbm/callback.py index 7db3d400ecd6..2f77ee740c75 100644 --- a/python-package/lightgbm/callback.py +++ b/python-package/lightgbm/callback.py @@ -164,7 +164,7 @@ def __call__(self, env: CallbackEnv) -> None: else: data_name, eval_name = item[1].split() res_mean = item[2] - res_stdv = item[4] + res_stdv = item[4] # type: ignore[misc] self.eval_result[data_name][f'{eval_name}-mean'].append(res_mean) self.eval_result[data_name][f'{eval_name}-stdv'].append(res_stdv)