File tree 3 files changed +22
-2
lines changed
3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 46
46
uses :
prefix-dev/[email protected]
47
47
with :
48
48
pixi-version : v0.39.0
49
+ manifest-path : array-api-extra/pyproject.toml
49
50
cache : true
50
51
51
52
- name : Test package
Original file line number Diff line number Diff line change 3
3
from __future__ import annotations
4
4
5
5
try :
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
+ )
7
10
except 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
+ )
9
15
10
16
__all__ = [
11
17
"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