mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 15:12:01 +00:00
Remove CppTypePybind11()
wrapping for now.
This commit is contained in:
parent
9548fa5e4e
commit
0b984334d9
@ -494,7 +494,7 @@ protected:
|
|||||||
} else {
|
} else {
|
||||||
std::string tname(t->name());
|
std::string tname(t->name());
|
||||||
detail::clean_type_id(tname);
|
detail::clean_type_id(tname);
|
||||||
signature += "Annotated[Any, CppTypePybind11(\"" + tname + "\")]";
|
signature += "Annotated[Any, \"" + tname + "\"]";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
signature += c;
|
signature += c;
|
||||||
|
@ -424,4 +424,4 @@ def test_fn_cast_int_exception():
|
|||||||
def test_return_exception_void():
|
def test_return_exception_void():
|
||||||
with pytest.raises(TypeError) as excinfo:
|
with pytest.raises(TypeError) as excinfo:
|
||||||
m.return_exception_void()
|
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):
|
def test_signature(doc):
|
||||||
assert (
|
assert (
|
||||||
doc(m.create_rec_nested) == "create_rec_nested(arg0: int) "
|
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