Fix dask.py lint error (#8216)

This commit is contained in:
Rong Ou
2022-09-02 01:30:01 -07:00
committed by GitHub
parent 56395d120b
commit b78bc734d9

View File

@@ -1684,7 +1684,7 @@ class DaskScikitLearnBase(XGBModel):
def __getstate__(self) -> Dict: def __getstate__(self) -> Dict:
this = self.__dict__.copy() this = self.__dict__.copy()
if "_client" in this.keys(): if "_client" in this:
del this["_client"] del this["_client"]
return this return this