@@ -385,7 +385,7 @@ 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
388
+ if TYPE_CHECKING : # Hack around pyright bug # pragma: no cover
389
389
assert _compat .is_array_api_obj (a )
390
390
assert _compat .is_array_api_obj (b )
391
391
@@ -504,13 +504,13 @@ def kron(
504
504
if xp is None :
505
505
xp = array_namespace (a , b )
506
506
a , b = asarrays (a , b , xp = xp )
507
- if TYPE_CHECKING : # Hack around pyright bug
507
+ if TYPE_CHECKING : # Hack around pyright bug # pragma: no cover
508
508
assert _compat .is_array_api_obj (a )
509
509
assert _compat .is_array_api_obj (b )
510
510
511
511
singletons = (1 ,) * (b .ndim - a .ndim )
512
512
a = xp .broadcast_to (a , singletons + a .shape )
513
- if TYPE_CHECKING : # Hack around pyright bug
513
+ if TYPE_CHECKING : # Hack around pyright bug # pragma: no cover
514
514
assert _compat .is_array_api_obj (a )
515
515
516
516
nd_b , nd_a = b .ndim , a .ndim
@@ -680,7 +680,7 @@ def setdiff1d(
680
680
x1 = xp .unique_values (x1 )
681
681
x2 = xp .unique_values (x2 )
682
682
683
- if TYPE_CHECKING : # Hack around pyright bug
683
+ if TYPE_CHECKING : # Hack around pyright bug # pragma: no cover
684
684
assert _compat .is_array_api_obj (x1 )
685
685
686
686
return x1 [_helpers .in1d (x1 , x2 , assume_unique = True , invert = True , xp = xp )]
0 commit comments