File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 66 from ..._array_api_compat_vendor import ( # pyright: ignore[reportMissingImports]
77 array_namespace , # pyright: ignore[reportUnknownVariableType]
88 device , # pyright: ignore[reportUnknownVariableType]
9+ is_dask_array , # pyright: ignore[reportUnknownVariableType]
10+ is_jax_array , # pyright: ignore[reportUnknownVariableType]
11+ is_writeable_array , # pyright: ignore[reportUnknownVariableType]
912 )
1013except ImportError :
1114 from array_api_compat import ( # pyright: ignore[reportMissingTypeStubs]
1215 array_namespace , # pyright: ignore[reportUnknownVariableType]
1316 device ,
17+ is_dask_array , # pyright: ignore[reportUnknownVariableType]
18+ is_jax_array , # pyright: ignore[reportUnknownVariableType]
19+ is_writeable_array , # pyright: ignore[reportUnknownVariableType,reportAttributeAccessIssue]
1420 )
1521
1622__all__ = [
1723 "array_namespace" ,
1824 "device" ,
25+ "is_dask_array" ,
26+ "is_jax_array" ,
27+ "is_writeable_array" ,
1928]
Original file line number Diff line number Diff line change @@ -11,3 +11,6 @@ def array_namespace(
1111 use_compat : bool | None = None ,
1212) -> ArrayModule : ...
1313def device (x : Array , / ) -> Device : ...
14+ def is_dask_array (x : object , / ) -> bool : ...
15+ def is_jax_array (x : object , / ) -> bool : ...
16+ def is_writeable_array (x : object , / ) -> bool : ...
You can’t perform that action at this time.
0 commit comments