Skip to content

Commit

Permalink
[python-package] fix mypy error about used_indices in Dataset.subset() (
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb authored Apr 19, 2023
1 parent 5989405 commit f065b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-package/lightgbm/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1736,7 +1736,7 @@ def _set_init_score_by_predictor(
self,
predictor: Optional[_InnerPredictor],
data: _LGBM_TrainDataType,
used_indices: Optional[List[int]]
used_indices: Optional[Union[List[int], np.ndarray]]
) -> "Dataset":
data_has_header = False
if isinstance(data, (str, Path)) and self.params is not None:
Expand Down

0 comments on commit f065b43

Please sign in to comment.