We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Annotated[Any, CppTypePybind11("cpp_namespace::UserType")]
1 parent ea00323 commit 272152eCopy full SHA for 272152e
include/pybind11/pybind11.h
@@ -494,7 +494,7 @@ class cpp_function : public function {
494
std::string tname(t->name());
495
detail::clean_type_id(tname);
496
if (detail::cpp_name_needs_typing_annotated(tname.c_str())) {
497
- signature += "Annotated[Any, \"" + tname + "\"]";
+ signature += "Annotated[Any, CppTypePybind11(\"" + tname + "\")]";
498
} else {
499
signature += tname;
500
}
0 commit comments