Unverified Commit ef5acfb4 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[ci] [python-package] fix mypy errors in Booster.refit() (#5853)

parent 5b72e4ab
......@@ -4189,7 +4189,7 @@ class Booster:
if dataset_params is None:
dataset_params = {}
predictor = self._to_predictor(pred_parameter=deepcopy(kwargs))
leaf_preds = predictor.predict(
leaf_preds: np.ndarray = predictor.predict( # type: ignore[assignment]
data=data,
start_iteration=-1,
pred_leaf=True,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment