From 8bab7b9ea55a84a50fdb527898ba805b88734bc5 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Wed, 1 Dec 2021 21:21:12 -0600 Subject: [PATCH] [python-package] fix mypy errors from dask.py docstrings --- python-package/lightgbm/dask.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python-package/lightgbm/dask.py b/python-package/lightgbm/dask.py index 0333bb1b85fd..f1b10ff43b31 100644 --- a/python-package/lightgbm/dask.py +++ b/python-package/lightgbm/dask.py @@ -1141,7 +1141,7 @@ def __init__( ) _base_doc = LGBMClassifier.__init__.__doc__ - _before_kwargs, _kwargs, _after_kwargs = _base_doc.partition('**kwargs') + _before_kwargs, _kwargs, _after_kwargs = _base_doc.partition('**kwargs') # type: ignore _base_doc = f""" {_before_kwargs}client : dask.distributed.Client or None, optional (default=None) {' ':4}Dask client. If ``None``, ``distributed.default_client()`` will be used at runtime. The Dask client used by this class will not be saved if the model object is pickled. @@ -1324,7 +1324,7 @@ def __init__( ) _base_doc = LGBMRegressor.__init__.__doc__ - _before_kwargs, _kwargs, _after_kwargs = _base_doc.partition('**kwargs') + _before_kwargs, _kwargs, _after_kwargs = _base_doc.partition('**kwargs') # type: ignore _base_doc = f""" {_before_kwargs}client : dask.distributed.Client or None, optional (default=None) {' ':4}Dask client. If ``None``, ``distributed.default_client()`` will be used at runtime. The Dask client used by this class will not be saved if the model object is pickled. @@ -1487,7 +1487,7 @@ def __init__( ) _base_doc = LGBMRanker.__init__.__doc__ - _before_kwargs, _kwargs, _after_kwargs = _base_doc.partition('**kwargs') + _before_kwargs, _kwargs, _after_kwargs = _base_doc.partition('**kwargs') # type: ignore _base_doc = f""" {_before_kwargs}client : dask.distributed.Client or None, optional (default=None) {' ':4}Dask client. If ``None``, ``distributed.default_client()`` will be used at runtime. The Dask client used by this class will not be saved if the model object is pickled.