File tree Expand file tree Collapse file tree 7 files changed +12
-9
lines changed Expand file tree Collapse file tree 7 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 11"""Extra array functions built on top of the array API standard."""
22
3- from ._delegators import pad
3+ from ._delegation import pad
44from ._lib ._funcs import (
55 at ,
66 atleast_nd ,
Original file line number Diff line number Diff line change 1- """Delegators to existing implementations for Public API Functions."""
1+ """Delegation to existing implementations for Public API Functions."""
2+
3+ from types import ModuleType
24
35from ._lib import _funcs
46from ._lib ._utils ._compat import (
810 is_numpy_namespace ,
911 is_torch_namespace ,
1012)
11- from ._lib ._utils ._typing import Array , ModuleType
13+ from ._lib ._utils ._typing import Array
1214
1315
1416def pad (
Original file line number Diff line number Diff line change 1- """Array-agnostic implementations for the public API ."""
1+ """Internals of array-api-extra ."""
Original file line number Diff line number Diff line change 1- """Public API Functions ."""
1+ """Array-agnostic implementations for the public API ."""
22
33# https://github.com/scikit-learn/scikit-learn/pull/27910#issuecomment-2568023972
44from __future__ import annotations
Original file line number Diff line number Diff line change 33# https://github.com/scikit-learn/scikit-learn/pull/27910#issuecomment-2568023972
44from __future__ import annotations
55
6+ from types import ModuleType
7+
68from . import _compat
7- from ._typing import Array , ModuleType
9+ from ._typing import Array
810
911__all__ = ["in1d" , "mean" ]
1012
Original file line number Diff line number Diff line change 11"""Static typing helpers."""
22
3- from types import ModuleType
43from typing import Any
54
65# To be changed to a Protocol later (see data-apis/array-api#589)
76Array = Any # type: ignore[no-any-explicit]
87Device = Any # type: ignore[no-any-explicit]
98Index = Any # type: ignore[no-any-explicit]
109
11- __all__ = ["Array" , "Device" , "Index" , "ModuleType" ]
10+ __all__ = ["Array" , "Device" , "Index" ]
Original file line number Diff line number Diff line change 1313)
1414
1515from array_api_extra import at
16- from array_api_extra ._lib ._typing import Array
16+ from array_api_extra ._lib ._utils . _typing import Array
1717
1818all_libraries = (
1919 "array_api_strict" ,
You can’t perform that action at this time.
0 commit comments