Skip to content

Commit

Permalink
[python-package] fix mypy errors about missing annotations and incomp…
Browse files Browse the repository at this point in the history
…atible types (#5672)
  • Loading branch information
IdoKendo authored Mar 9, 2023
1 parent f585eaf commit 90a4510
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python-package/lightgbm/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ def __init__(
self._reset_storages()

def _reset_storages(self) -> None:
self.best_score = []
self.best_iter = []
self.best_score_list = []
self.cmp_op = []
self.best_score: List[float] = []
self.best_iter: List[int] = []
self.best_score_list: List[Union[_EvalResultTuple, None]] = []
self.cmp_op: List[Callable[[float, float], bool]] = []
self.first_metric = ''

def _gt_delta(self, curr_score: float, best_score: float, delta: float) -> bool:
Expand Down

0 comments on commit 90a4510

Please sign in to comment.