File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 66
66
67
67
# asarray also adds the copy keyword, which is not present in numpy 1.0.
68
68
def asarray (
69
- obj : bool | complex | NestedSequence [bool | complex ] | SupportsBufferProtocol ,
69
+ obj : Array | bool | complex | NestedSequence [bool | complex ]
70
+ | SupportsBufferProtocol ,
70
71
/ ,
71
72
* ,
72
73
dtype : Optional [DType ] = None ,
Original file line number Diff line number Diff line change @@ -135,7 +135,8 @@ def arange(
135
135
136
136
# asarray also adds the copy keyword, which is not present in numpy 1.0.
137
137
def asarray (
138
- obj : bool | complex | NestedSequence [bool | complex ] | SupportsBufferProtocol ,
138
+ obj : Array | bool | complex | NestedSequence [bool | complex ]
139
+ | SupportsBufferProtocol ,
139
140
/ ,
140
141
* ,
141
142
dtype : Optional [DType ] = None ,
Original file line number Diff line number Diff line change @@ -73,7 +73,8 @@ def _supports_buffer_protocol(obj):
73
73
# complicated enough that it's easier to define it separately for each module
74
74
# rather than trying to combine everything into one function in common/
75
75
def asarray (
76
- obj : bool | complex | NestedSequence [bool | complex ] | SupportsBufferProtocol ,
76
+ obj : Array | bool | complex | NestedSequence [bool | complex ]
77
+ | SupportsBufferProtocol ,
77
78
/ ,
78
79
* ,
79
80
dtype : Optional [DType ] = None ,
You can’t perform that action at this time.
0 commit comments