Skip to content

Commit

Permalink
Remove Untyped
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Dec 12, 2024
1 parent d3a5bc4 commit 8a686f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions src/array_api_extra/_lib/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
from typing import Any

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

__all__ = ["Array", "Device", "Index", "ModuleType", "Untyped"]
__all__ = ["Array", "Device", "Index", "ModuleType"]
4 changes: 2 additions & 2 deletions tests/test_at.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from array_api_extra import at

if TYPE_CHECKING:
from array_api_extra._lib._typing import Array, Untyped
from array_api_extra._lib._typing import Array

all_libraries = (
"array_api_strict",
Expand Down Expand Up @@ -95,7 +95,7 @@ def assert_copy(array: Array, copy: bool | None) -> Generator[None, None, None]:
)
def test_update_ops(
array: Array,
kwargs: dict[str, Untyped],
kwargs: dict[str, bool | None],
expect_copy: bool | None,
op: str,
arg: float,
Expand Down

0 comments on commit 8a686f8

Please sign in to comment.