Skip to content

Commit 8a686f8

Browse files
committed
Remove Untyped
1 parent d3a5bc4 commit 8a686f8

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/array_api_extra/_lib/_typing.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
from typing import Any
33

44
# To be changed to a Protocol later (see data-apis/array-api#589)
5-
Untyped = Any # type: ignore[no-any-explicit]
6-
Array = Untyped
7-
Device = Untyped
8-
Index = Untyped
5+
Array = Any # type: ignore[no-any-explicit]
6+
Device = Any # type: ignore[no-any-explicit]
7+
Index = Any # type: ignore[no-any-explicit]
98

10-
__all__ = ["Array", "Device", "Index", "ModuleType", "Untyped"]
9+
__all__ = ["Array", "Device", "Index", "ModuleType"]

tests/test_at.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from array_api_extra import at
1818

1919
if TYPE_CHECKING:
20-
from array_api_extra._lib._typing import Array, Untyped
20+
from array_api_extra._lib._typing import Array
2121

2222
all_libraries = (
2323
"array_api_strict",
@@ -95,7 +95,7 @@ def assert_copy(array: Array, copy: bool | None) -> Generator[None, None, None]:
9595
)
9696
def test_update_ops(
9797
array: Array,
98-
kwargs: dict[str, Untyped],
98+
kwargs: dict[str, bool | None],
9999
expect_copy: bool | None,
100100
op: str,
101101
arg: float,

0 commit comments

Comments
 (0)