Skip to content

Commit

Permalink
[ci] [python-package] fix mypy error about dask._predict_part() (#5849)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb authored Apr 25, 2023
1 parent ac37bf8 commit 611ce0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python-package/lightgbm/dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,7 @@ def _predict_part(
**kwargs: Any
) -> _DaskPart:

result: _DaskPart
if part.shape[0] == 0:
result = np.array([])
elif pred_proba:
Expand Down

0 comments on commit 611ce0d

Please sign in to comment.