@@ -292,7 +292,10 @@ def test_isna() -> None:
292
292
if not pd .notna (nullable2 ):
293
293
# TODO: This is the true type (see comments above on the limitations of TypeGuard)
294
294
# check(assert_type(nullable2, None), type(None))
295
- assert_type (nullable2 , Union [int , NaTType , NAType , None ])
295
+ assert_type (nullable2 , Union [int , None ]) # TODO: MyPy result
296
+ assert_type (
297
+ nullable2 , Union [int , NaTType , NAType , None ]
298
+ ) # TODO: Pyright result
296
299
297
300
nullable3 = random .choice ([True , None , pd .NA ])
298
301
if pd .notna (nullable3 ):
@@ -308,7 +311,10 @@ def test_isna() -> None:
308
311
if not pd .notna (nullable3 ):
309
312
# TODO: This is the true type (see comments above on the limitations of TypeGuard)
310
313
# assert_type(nullable3, Union[NAType, None])
311
- assert_type (nullable3 , Union [bool , NaTType , NAType , None ])
314
+ assert_type (nullable3 , Union [bool , NAType , None ]) # TODO: Mypy result
315
+ assert_type (
316
+ nullable3 , Union [bool , NaTType , NAType , None ]
317
+ ) # TODO: Pyright result
312
318
313
319
314
320
# GH 55
0 commit comments