Skip to content

Commit

Permalink
[python-package] fix mypy error about eval result tuples (#6105)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Sep 19, 2023
1 parent 646dfed commit aa489f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-package/lightgbm/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit aa489f4

Please sign in to comment.