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 6666
6767# asarray also adds the copy keyword, which is not present in numpy 1.0.
6868def asarray (
69- obj : bool | complex | NestedSequence [bool | complex ] | SupportsBufferProtocol ,
69+ obj : Array | bool | complex | NestedSequence [bool | complex ]
70+ | SupportsBufferProtocol ,
7071 / ,
7172 * ,
7273 dtype : Optional [DType ] = None ,
Original file line number Diff line number Diff line change @@ -135,7 +135,8 @@ def arange(
135135
136136# asarray also adds the copy keyword, which is not present in numpy 1.0.
137137def asarray (
138- obj : bool | complex | NestedSequence [bool | complex ] | SupportsBufferProtocol ,
138+ obj : Array | bool | complex | NestedSequence [bool | complex ]
139+ | SupportsBufferProtocol ,
139140 / ,
140141 * ,
141142 dtype : Optional [DType ] = None ,
Original file line number Diff line number Diff line change @@ -73,7 +73,8 @@ def _supports_buffer_protocol(obj):
7373# complicated enough that it's easier to define it separately for each module
7474# rather than trying to combine everything into one function in common/
7575def asarray (
76- obj : bool | complex | NestedSequence [bool | complex ] | SupportsBufferProtocol ,
76+ obj : Array | bool | complex | NestedSequence [bool | complex ]
77+ | SupportsBufferProtocol ,
7778 / ,
7879 * ,
7980 dtype : Optional [DType ] = None ,
You can’t perform that action at this time.
0 commit comments