File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1750,11 +1750,12 @@ def __contains__(self, key) -> bool:
17501750 # if key is a NaN, check if any NaN is in self.
17511751 if is_valid_nat_for_dtype (key , self .categories .dtype ):
17521752 if key is not self .dtype .na_value and not isinstance (key , self .dtype .type ):
1753- warn (f"Membership check with { key } will return False in the future. "
1754- f"Consider using { self .dtype .na_value } instead" ,
1755- FutureWarning ,
1756- stacklevel = 2 ,
1757- )
1753+ warn (
1754+ f"Membership check with { key } will return False in the future. "
1755+ f"Consider using { self .dtype .na_value } instead" ,
1756+ FutureWarning ,
1757+ stacklevel = 2 ,
1758+ )
17581759 return self .isna ().any ()
17591760
17601761 return contains (self , key , container = self ._codes )
You can’t perform that action at this time.
0 commit comments