Better support for mypy. #6496
Labels
Comments
Merged
|
I marked this as good first issue. Adding type checks for Python is an incremental process, parameter by parameter and function by function. It would be a good chance to review existing code base and make improvement during the process. I have made some progress on #6519 with the dask module, which is by far the most dynamic module in xgboost. Other modules can use it as a base line. Contributions are welcomed! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Currently many more Python projects like dask and optuna are using Python type hints. With the Python package of xgboost gaining more and more features, we should also adopt mypy as a safe guard against some type errors and for better code documentation.
The text was updated successfully, but these errors were encountered: