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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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