Typehint for Sklearn. (#6799)

This commit is contained in:
Jiaming Yuan
2021-04-14 06:55:21 +08:00
committed by GitHub
parent 3d919db0c0
commit dee5ef2dfd
11 changed files with 335 additions and 262 deletions

View File

@@ -91,8 +91,9 @@ endif
# If any of the dask tests failed, contributor won't see the other error.
mypy:
cd python-package; \
mypy ./xgboost/dask.py ../tests/python/test_with_dask.py --follow-imports=silent; \
mypy ../tests/python-gpu/test_gpu_with_dask.py --follow-imports=silent; \
mypy ./xgboost/dask.py && \
mypy ../tests/python-gpu/test_gpu_with_dask.py && \
mypy ./xgboost/sklearn.py || exit 1; \
mypy . || true ;
clean: