From b78bc734d9f75e3d6179583e72a450cd899e12d3 Mon Sep 17 00:00:00 2001 From: Rong Ou Date: Fri, 2 Sep 2022 01:30:01 -0700 Subject: [PATCH] Fix dask.py lint error (#8216) --- python-package/xgboost/dask.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-package/xgboost/dask.py b/python-package/xgboost/dask.py index 951676a81..75eeba875 100644 --- a/python-package/xgboost/dask.py +++ b/python-package/xgboost/dask.py @@ -1684,7 +1684,7 @@ class DaskScikitLearnBase(XGBModel): def __getstate__(self) -> Dict: this = self.__dict__.copy() - if "_client" in this.keys(): + if "_client" in this: del this["_client"] return this