Fix lint errors. (#9634)

This commit is contained in:
Jiaming Yuan
2023-10-09 19:04:31 +08:00
committed by GitHub
parent db8d117f7e
commit 4e5a7729c3
3 changed files with 174 additions and 14 deletions

View File

@@ -198,7 +198,7 @@ class SparkXGBRegressor(_SparkXGBEstimator):
"""
@keyword_only
def __init__(
def __init__( # pylint:disable=too-many-arguments
self,
*,
features_col: Union[str, List[str]] = "features",
@@ -376,7 +376,7 @@ class SparkXGBClassifier(_SparkXGBEstimator, HasProbabilityCol, HasRawPrediction
"""
@keyword_only
def __init__(
def __init__( # pylint:disable=too-many-arguments
self,
*,
features_col: Union[str, List[str]] = "features",
@@ -566,7 +566,7 @@ class SparkXGBRanker(_SparkXGBEstimator):
"""
@keyword_only
def __init__(
def __init__( # pylint:disable=too-many-arguments
self,
*,
features_col: Union[str, List[str]] = "features",