diff --git a/tests/test_numpy_dtypes.py b/tests/test_numpy_dtypes.py index d10457eeb2..9f9582e1f6 100644 --- a/tests/test_numpy_dtypes.py +++ b/tests/test_numpy_dtypes.py @@ -342,8 +342,8 @@ def test_complex_array(): def test_signature(doc): assert ( - doc(m.create_rec_nested) - == "create_rec_nested(arg0: int) -> numpy.ndarray[NestedStruct]" + doc(m.create_rec_nested) == "create_rec_nested(arg0: int) " + '-> numpy.ndarray[Annotated[Any, CppTypePybind11("NestedStruct")]]' )