Skip to content

Commit cbd2d4e

Browse files
committed
clean up
1 parent e061e10 commit cbd2d4e

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/array_api_extra/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from __future__ import annotations
1+
from __future__ import annotations # https://github.com/pylint-dev/pylint/pull/9990
22

33
from ._funcs import atleast_nd, cov, create_diagonal, expand_dims, kron, setdiff1d, sinc
44

src/array_api_extra/_lib/_typing.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@
66

77
if typing.TYPE_CHECKING:
88
from typing_extensions import override
9+
10+
# To be changed to a Protocol later (see data-apis/array-api#589)
11+
Array = Any # type: ignore[no-any-explicit]
12+
Device = Any # type: ignore[no-any-explicit]
913
else:
1014

1115
def no_op_decorator(f): # pyright: ignore[reportUnreachable]
1216
return f
1317

1418
override = no_op_decorator
1519

16-
__all__ = ["Array", "Device", "ModuleType", "override"]
17-
18-
19-
# To be changed to a Protocol later (see data-apis/array-api#589)
20-
Array = Any # type: ignore[no-any-explicit]
21-
Device = Any # type: ignore[no-any-explicit]
20+
__all__ = ["ModuleType", "override"]
21+
if typing.TYPE_CHECKING:
22+
__all__ += ["Array", "Device"]

0 commit comments

Comments
 (0)