Skip to content

Commit

Permalink
Annotated[Any, CppTypePybind11("cpp_namespace::UserType")] based on…
Browse files Browse the repository at this point in the history
… a suggestion by @sizmailov

#4888 (comment)
  • Loading branch information
Ralf W. Grosse-Kunstleve committed Oct 21, 2023
1 parent ea00323 commit 272152e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pybind11/pybind11.h
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ class cpp_function : public function {
std::string tname(t->name());
detail::clean_type_id(tname);
if (detail::cpp_name_needs_typing_annotated(tname.c_str())) {
signature += "Annotated[Any, \"" + tname + "\"]";
signature += "Annotated[Any, CppTypePybind11(\"" + tname + "\")]";
} else {
signature += tname;
}
Expand Down

0 comments on commit 272152e

Please sign in to comment.