Skip to content

Commit

Permalink
small fix for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascolley committed Nov 23, 2024
1 parent 3eb5f15 commit b8b72b6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/array_api_extra/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

import inspect
import sys
from typing import TYPE_CHECKING
import typing

if TYPE_CHECKING:
if typing.TYPE_CHECKING:
from ._typing import Array, Device

__all__ = ["device"]
Expand Down
4 changes: 2 additions & 2 deletions src/array_api_extra/_funcs.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from __future__ import annotations # https://github.com/pylint-dev/pylint/pull/9990

import typing
import warnings
from typing import TYPE_CHECKING

if TYPE_CHECKING:
if typing.TYPE_CHECKING:
from ._typing import Array, ModuleType

from . import _utils
Expand Down
4 changes: 2 additions & 2 deletions src/array_api_extra/_utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from __future__ import annotations # https://github.com/pylint-dev/pylint/pull/9990

from typing import TYPE_CHECKING
import typing

if TYPE_CHECKING:
if typing.TYPE_CHECKING:
from ._typing import Array, ModuleType

from . import _compat
Expand Down
5 changes: 3 additions & 2 deletions tests/test_funcs.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from __future__ import annotations

import contextlib
import typing
import warnings
from typing import TYPE_CHECKING, Any
from typing import Any

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

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

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


Expand Down

0 comments on commit b8b72b6

Please sign in to comment.