Skip to content

Commit 7780fbc

Browse files
committed
Try Annotated[Any, "cpp_namespace::UserType"] unconditionally.
1 parent 74439a6 commit 7780fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/pybind11.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ class cpp_function : public function {
493493
} else {
494494
std::string tname(t->name());
495495
detail::clean_type_id(tname);
496-
signature += tname;
496+
signature += "Annotated[Any, \"" + tname + "\"]";
497497
}
498498
} else {
499499
signature += c;

0 commit comments

Comments
 (0)