File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 4646 uses :
prefix-dev/[email protected] 4747 with :
4848 pixi-version : v0.39.0
49+ manifest-path : array-api-extra/pyproject.toml
4950 cache : true
5051
5152 - name : Test package
Original file line number Diff line number Diff line change 33from __future__ import annotations
44
55try :
6- from ..._array_api_compat_vendor import array_namespace , device
6+ from ..._array_api_compat_vendor import ( # pyright: ignore[reportMissingImports]
7+ array_namespace , # pyright: ignore[reportUnknownVariableType]
8+ device , # pyright: ignore[reportUnknownVariableType]
9+ )
710except ImportError :
8- from array_api_compat import array_namespace , device
11+ from array_api_compat import ( # pyright: ignore[reportMissingTypeStubs]
12+ array_namespace , # pyright: ignore[reportUnknownVariableType]
13+ device ,
14+ )
915
1016__all__ = [
1117 "array_namespace" ,
Original file line number Diff line number Diff line change 1+ from types import ModuleType
2+ from ._typing import Array , Device
3+
4+ class ArrayModule (ModuleType ):
5+ def device (self , x : Array , / ) -> Device : ...
6+
7+ def array_namespace (
8+ * xs : Array ,
9+ api_version : str | None = None ,
10+ use_compat : bool | None = None ,
11+ ) -> ArrayModule : ...
12+
13+ def device (x : Array , / ) -> Device : ...
You can’t perform that action at this time.
0 commit comments