Skip to content

Commit 39a4606

Browse files
committed
Assert the true/false return of isna/notna on a scalar value
1 parent 6029ba3 commit 39a4606

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_pandas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ def test_isna() -> None:
144144
assert check(assert_type(pd.isna(None), bool), bool)
145145
assert not check(assert_type(pd.notna(None), bool), bool)
146146

147-
check(assert_type(pd.isna(2.5), bool), bool)
148-
check(assert_type(pd.notna(2.5), bool), bool)
147+
assert not check(assert_type(pd.isna(2.5), bool), bool)
148+
assert check(assert_type(pd.notna(2.5), bool), bool)
149149

150150
# Check type guard functionality
151151
nullable1 = random.choice(["value", None, pd.NA, pd.NaT])

0 commit comments

Comments
 (0)