@@ -388,11 +388,6 @@ def test_isna() -> None:
388
388
check (assert_type (nullable2 , None ), type (None ))
389
389
if not pd .notna (nullable2 ):
390
390
check (assert_type (nullable2 , None ), type (None ))
391
- # TODO: MyPy and Pyright produce conflicting results:
392
- # assert_type(nullable2, Union[int, None]) # MyPy result
393
- # assert_type(
394
- # nullable2, Union[int, NaTType, NAType, None]
395
- # ) # Pyright result
396
391
397
392
nullable3 : bool | None | NAType = random .choice ([True , None , pd .NA ])
398
393
if pd .notna (nullable3 ):
@@ -402,13 +397,7 @@ def test_isna() -> None:
402
397
if pd .isna (nullable3 ):
403
398
assert_type (nullable3 , Union [NAType , None ])
404
399
if not pd .notna (nullable3 ):
405
- # assert_type(nullable3, Union[NAType, None]) # TODO: Desired result (see comments above)
406
- # TODO: MyPy and Pyright produce conflicting results:
407
- # assert_type(nullable3, Union[bool, NAType, None]) # Mypy result
408
- # assert_type(
409
- # nullable3, Union[bool, NaTType, NAType, None]
410
- # ) # Pyright result
411
- pass
400
+ assert_type (nullable3 , Union [NAType , None ])
412
401
413
402
414
403
# GH 55
0 commit comments