@@ -385,7 +385,8 @@ def isclose(
385
385
) -> Array : # numpydoc ignore=PR01,RT01
386
386
"""See docstring in array_api_extra._delegation."""
387
387
a , b = asarrays (a , b , xp = xp )
388
- if TYPE_CHECKING : # Hack around pyright bug # pragma: no cover
388
+ # FIXME https://github.com/microsoft/pyright/issues/10085
389
+ if TYPE_CHECKING : # pragma: nocover
389
390
assert _compat .is_array_api_obj (a )
390
391
assert _compat .is_array_api_obj (b )
391
392
@@ -504,13 +505,15 @@ def kron(
504
505
if xp is None :
505
506
xp = array_namespace (a , b )
506
507
a , b = asarrays (a , b , xp = xp )
507
- if TYPE_CHECKING : # Hack around pyright bug # pragma: no cover
508
+ # FIXME https://github.com/microsoft/pyright/issues/10085
509
+ if TYPE_CHECKING : # pragma: nocover
508
510
assert _compat .is_array_api_obj (a )
509
511
assert _compat .is_array_api_obj (b )
510
512
511
513
singletons = (1 ,) * (b .ndim - a .ndim )
512
514
a = xp .broadcast_to (a , singletons + a .shape )
513
- if TYPE_CHECKING : # Hack around pyright bug # pragma: no cover
515
+ # FIXME https://github.com/microsoft/pyright/issues/10085
516
+ if TYPE_CHECKING : # pragma: nocover
514
517
assert _compat .is_array_api_obj (a )
515
518
516
519
nd_b , nd_a = b .ndim , a .ndim
@@ -680,7 +683,8 @@ def setdiff1d(
680
683
x1 = xp .unique_values (x1 )
681
684
x2 = xp .unique_values (x2 )
682
685
683
- if TYPE_CHECKING : # Hack around pyright bug # pragma: no cover
686
+ # FIXME https://github.com/microsoft/pyright/issues/10085
687
+ if TYPE_CHECKING : # pragma: nocover
684
688
assert _compat .is_array_api_obj (x1 )
685
689
686
690
return x1 [_helpers .in1d (x1 , x2 , assume_unique = True , invert = True , xp = xp )]
0 commit comments