Remove CppTypePybind11() wrapping for now.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2023-11-14 12:59:19 -08:00
parent 9548fa5e4e
commit 0b984334d9
3 changed files with 3 additions and 3 deletions

View File

@ -494,7 +494,7 @@ protected:
} else {
std::string tname(t->name());
detail::clean_type_id(tname);
signature += "Annotated[Any, CppTypePybind11(\"" + tname + "\")]";
signature += "Annotated[Any, \"" + tname + "\"]";
}
} else {
signature += c;

View File

@ -424,4 +424,4 @@ def test_fn_cast_int_exception():
def test_return_exception_void():
with pytest.raises(TypeError) as excinfo:
m.return_exception_void()
assert 'Annotated[Any, CppTypePybind11("exception<void>")]' in str(excinfo.value)
assert 'Annotated[Any, "exception<void>"]' in str(excinfo.value)

View File

@ -343,7 +343,7 @@ def test_complex_array():
def test_signature(doc):
assert (
doc(m.create_rec_nested) == "create_rec_nested(arg0: int) "
'-> numpy.ndarray[Annotated[Any, CppTypePybind11("NestedStruct")]]'
'-> numpy.ndarray[Annotated[Any, "NestedStruct"]]'
)