Skip to content

Commit 3120c54

Browse files
committed
small fix for coverage
1 parent 3eb5f15 commit 3120c54

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/array_api_extra/_compat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
import inspect
66
import sys
7-
from typing import TYPE_CHECKING
7+
import typing
88

9-
if TYPE_CHECKING:
9+
if typing.TYPE_CHECKING:
1010
from ._typing import Array, Device
1111

1212
__all__ = ["device"]

src/array_api_extra/_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from __future__ import annotations # https://github.com/pylint-dev/pylint/pull/9990
22

3-
from typing import TYPE_CHECKING
3+
import typing
44

5-
if TYPE_CHECKING:
5+
if typing.TYPE_CHECKING:
66
from ._typing import Array, ModuleType
77

88
from . import _compat

tests/test_funcs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from __future__ import annotations
22

33
import contextlib
4+
import typing
45
import warnings
5-
from typing import TYPE_CHECKING, Any
6+
from typing import Any
67

78
# array-api-strict#6
89
import array_api_strict as xp # type: ignore[import-untyped]
@@ -12,7 +13,7 @@
1213

1314
from array_api_extra import atleast_nd, cov, create_diagonal, expand_dims, kron, sinc
1415

15-
if TYPE_CHECKING:
16+
if typing.TYPE_CHECKING:
1617
Array = Any # To be changed to a Protocol later (see array-api#589)
1718

1819

0 commit comments

Comments
 (0)