Skip to content

Commit

Permalink
Try Annotated[Any, "cpp_namespace::UserType"] unconditionally.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf W. Grosse-Kunstleve committed Oct 19, 2023
1 parent 74439a6 commit 7780fbc
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 @@ -493,7 +493,7 @@ class cpp_function : public function {
} else {
std::string tname(t->name());
detail::clean_type_id(tname);
signature += tname;
signature += "Annotated[Any, \"" + tname + "\"]";
}
} else {
signature += c;
Expand Down

0 comments on commit 7780fbc

Please sign in to comment.