Skip to content

Commit 52e2b43

Browse files
committed
minor issues
1 parent fdb9deb commit 52e2b43

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

pandas/core/arrays/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ def __contains__(self, item) -> bool:
359359
"""
360360
Return for `item in self`.
361361
"""
362+
# GH37867
362363
# comparisons of any item to pd.NA always return pd.NA, so e.g. "a" in [pd.NA]
363364
# would raise a TypeError. The implementation below works around that.
364365
if item is self.dtype.na_value:

pandas/tests/extension/base/interface.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def test_contains(self, data, data_missing):
3939
scalar = this_data[~this_data.isna()][0]
4040

4141
assert scalar in this_data
42-
assert "124jhujbhjhb5" not in data
4342

4443
na_value = this_data.dtype.na_value
4544

0 commit comments

Comments
 (0)