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:
1750
1750
# if key is a NaN, check if any NaN is in self.
1751
1751
if is_valid_nat_for_dtype (key , self .categories .dtype ):
1752
1752
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
+ )
1758
1759
return self .isna ().any ()
1759
1760
1760
1761
return contains (self , key , container = self ._codes )
You can’t perform that action at this time.
0 commit comments