File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1521,7 +1521,7 @@ struct npy_format_descriptor<
1521
1521
enable_if_t <is_same_ignoring_cvref<T, PyObject *>::value
1522
1522
|| ((std::is_same<T, handle>::value || std::is_same<T, object>::value)
1523
1523
&& sizeof (T) == sizeof (PyObject *))>> {
1524
- static constexpr auto name = const_name(" object " );
1524
+ static constexpr auto name = const_name(" numpy.object_ " );
1525
1525
1526
1526
static constexpr int value = npy_api::NPY_OBJECT_;
1527
1527
Original file line number Diff line number Diff line change @@ -302,6 +302,13 @@ def test_constructors():
302
302
assert results ["array_t<double>" ].dtype == np .float64
303
303
304
304
305
+ def test_array_object_type (doc ):
306
+ assert (
307
+ doc (m .pass_array_object_return_as_list )
308
+ == "pass_array_object_return_as_list(arg0: typing.Annotated[numpy.typing.ArrayLike, numpy.object_]) -> list"
309
+ )
310
+
311
+
305
312
def test_overload_resolution (msg ):
306
313
# Exact overload matches:
307
314
assert m .overloaded (np .array ([1 ], dtype = "float64" )) == "double"
You can’t perform that action at this time.
0 commit comments