From 7780fbca6c37ccc9c3c8f358f485543cfdb132af Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 19 Oct 2023 15:42:43 -0700 Subject: [PATCH] Try `Annotated[Any, "cpp_namespace::UserType"]` unconditionally. --- include/pybind11/pybind11.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;