Fix dask.py lint error (#8216)

This commit is contained in:
Rong Ou
2022-09-02 16:30:01 +08:00
committed by GitHub
parent 56395d120b
commit b78bc734d9
+1 -1
View File
@@ -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