From 0c5f46f848f69a04a3c97c12cdbab8106708b1aa Mon Sep 17 00:00:00 2001 From: James Lamb Date: Thu, 3 Nov 2022 20:10:24 -0500 Subject: [PATCH] [python-package] remove unused imports (#5559) --- python-package/lightgbm/dask.py | 8 ++++---- python-package/lightgbm/sklearn.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python-package/lightgbm/dask.py b/python-package/lightgbm/dask.py index 20c6ed3f1dfa..c71ce6799c32 100644 --- a/python-package/lightgbm/dask.py +++ b/python-package/lightgbm/dask.py @@ -17,13 +17,13 @@ import numpy as np import scipy.sparse as ss -from .basic import LightGBMError, _choose_param_value, _ConfigAliases, _log_info, _log_warning, _safe_call +from .basic import LightGBMError, _choose_param_value, _ConfigAliases, _log_info, _log_warning from .compat import (DASK_INSTALLED, PANDAS_INSTALLED, SKLEARN_INSTALLED, Client, LGBMNotFittedError, concat, dask_Array, dask_array_from_delayed, dask_bag_from_delayed, dask_DataFrame, dask_Series, default_client, delayed, pd_DataFrame, pd_Series, wait) -from .sklearn import (LGBMClassifier, LGBMModel, LGBMRanker, LGBMRegressor, _LGBM_ScikitCustomEvalFunction, - _LGBM_ScikitCustomObjectiveFunction, _LGBM_ScikitEvalMetricType, _lgbmmodel_doc_custom_eval_note, - _lgbmmodel_doc_fit, _lgbmmodel_doc_predict) +from .sklearn import (LGBMClassifier, LGBMModel, LGBMRanker, LGBMRegressor, _LGBM_ScikitCustomObjectiveFunction, + _LGBM_ScikitEvalMetricType, _lgbmmodel_doc_custom_eval_note, _lgbmmodel_doc_fit, + _lgbmmodel_doc_predict) _DaskCollection = Union[dask_Array, dask_DataFrame, dask_Series] _DaskMatrixLike = Union[dask_Array, dask_DataFrame] diff --git a/python-package/lightgbm/sklearn.py b/python-package/lightgbm/sklearn.py index d6fd9634291f..05219eaf3d5e 100644 --- a/python-package/lightgbm/sklearn.py +++ b/python-package/lightgbm/sklearn.py @@ -3,7 +3,7 @@ import copy from inspect import signature from pathlib import Path -from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Union +from typing import Any, Callable, Dict, List, Optional, Tuple, Union import numpy as np