File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 6
6
"DType" ,
7
7
"Device" ,
8
8
"HasArrayNamespace" ,
9
+ "NestedSequence" ,
10
+ "SupportsBufferProtocol" ,
9
11
"__version__" ,
10
12
"__version_tuple__" ,
11
13
]
14
16
from ._device import Device
15
17
from ._dtype import DType
16
18
from ._namespace import ArrayNamespace , HasArrayNamespace
19
+ from ._simple import NestedSequence , SupportsBufferProtocol
17
20
from ._version import version as __version__ , version_tuple as __version_tuple__
Original file line number Diff line number Diff line change @@ -16,12 +16,7 @@ class ArrayNamespace(Protocol[A]):
16
16
17
17
def asarray (
18
18
self ,
19
- obj : (
20
- Array
21
- | complex
22
- | NestedSequence [bool | int | float | complex ]
23
- | SupportsBufferProtocol
24
- ),
19
+ obj : Array | complex | NestedSequence [complex ] | SupportsBufferProtocol ,
25
20
/ ,
26
21
* ,
27
22
dtype : DType | None = None ,
You can’t perform that action at this time.
0 commit comments