mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 07:02:11 +00:00
Remove CppTypePybind11()
wrapping for now.
This commit is contained in:
parent
9548fa5e4e
commit
0b984334d9
@ -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;
|
||||
|
@ -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)
|
||||
|
@ -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"]]'
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user