Skip to content

Commit

Permalink
Fix mypy error with the latest dask. (#8052)
Browse files Browse the repository at this point in the history
* Fix mypy error with latest dask.

Dask is adding type hints to its codebase and as the result, checks in XGBoost can be
performed more rigorously.

- Remove compatibility with old dask version where multi lock was missing.
- Restrict input of `X` to be non-series.
- Adopt latest definition of `Delayed`.
- Avoid passing optional `host_ip`.
- Avoid deprecated `worker.nthreads`.
  • Loading branch information
trivialfis authored Jul 9, 2022
1 parent 210eb47 commit a5bc8e2
Showing 1 changed file with 95 additions and 109 deletions.
Loading

0 comments on commit a5bc8e2

Please sign in to comment.