Skip to content

Commit 9de09f9

Browse files
committed
coverage
1 parent 49b3e92 commit 9de09f9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/array_api_extra/_lib/_funcs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def isclose(
385385
) -> Array: # numpydoc ignore=PR01,RT01
386386
"""See docstring in array_api_extra._delegation."""
387387
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
389389
assert _compat.is_array_api_obj(a)
390390
assert _compat.is_array_api_obj(b)
391391

@@ -504,13 +504,13 @@ def kron(
504504
if xp is None:
505505
xp = array_namespace(a, b)
506506
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
508508
assert _compat.is_array_api_obj(a)
509509
assert _compat.is_array_api_obj(b)
510510

511511
singletons = (1,) * (b.ndim - a.ndim)
512512
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
514514
assert _compat.is_array_api_obj(a)
515515

516516
nd_b, nd_a = b.ndim, a.ndim
@@ -680,7 +680,7 @@ def setdiff1d(
680680
x1 = xp.unique_values(x1)
681681
x2 = xp.unique_values(x2)
682682

683-
if TYPE_CHECKING: # Hack around pyright bug
683+
if TYPE_CHECKING: # Hack around pyright bug # pragma: no cover
684684
assert _compat.is_array_api_obj(x1)
685685

686686
return x1[_helpers.in1d(x1, x2, assume_unique=True, invert=True, xp=xp)]

src/array_api_extra/_lib/_utils/_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from ._compat import array_namespace, is_array_api_obj, is_numpy_array
1212
from ._typing import Array
1313

14-
if TYPE_CHECKING:
14+
if TYPE_CHECKING: # pragma: no cover
1515
# TODO import from typing (requires Python >=3.13)
1616
from typing_extensions import TypeIs
1717

0 commit comments

Comments
 (0)