diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index a94f6f0f1..0b4f46f6d 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -493,7 +493,7 @@ protected: } else { std::string tname(t->name()); detail::clean_type_id(tname); - signature += tname; + signature += "Annotated[Any, \"" + tname + "\"]"; } } else { signature += c;