Lines Matching defs:signature
171 /* Generate a readable signature describing the function's arguments and return value types */
172 static constexpr auto signature = _("(") + cast_in::arg_names + _(") -> ") + cast_out::name;
173 PYBIND11_DESCR_CONSTEXPR auto types = decltype(signature)::types();
176 initialize_generic(rec, signature.text, types.data(), sizeof...(Args));
224 /* Generate a proper function signature */
225 std::string signature;
236 signature += rec->args[arg_index].name;
238 signature += "self";
240 signature += "arg" + std::to_string(arg_index - (rec->is_method ? 1 : 0));
242 signature += ": ";
246 signature += " = ";
247 signature += rec->args[arg_index].descr;
253 pybind11_fail("Internal error while parsing type signature (1)");
256 signature +=
262 signature +=
268 signature += tname;
271 signature += c;
275 pybind11_fail("Internal error while parsing type signature (2)");
286 rec->signature = strdup(signature.c_str());
344 std::string(pybind11::str(rec->scope.attr("__name__"))) + "." + std::string(rec->name) + signature
357 // First a generic signature
370 signatures += it->signature;
408 std::free((char *) rec->signature);
726 std::string sig = it2->signature;
742 if (!wrote_sig) msg += it2->signature;
773 "Python type! The signature was\n\t";
774 msg += it->signature;