From 648e6703dd9ed76a56f6ef2d71a5c6be816b2edc Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Sun, 13 Feb 2022 13:38:11 -0500 Subject: [PATCH] Fix clang-tidy --- include/pybind11/detail/type_caster_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/detail/type_caster_base.h b/include/pybind11/detail/type_caster_base.h index b2f5890fa..e3a6ecbd4 100644 --- a/include/pybind11/detail/type_caster_base.h +++ b/include/pybind11/detail/type_caster_base.h @@ -475,7 +475,7 @@ PYBIND11_NOINLINE std::string error_string(PyObject *type, PyObject *value, PyOb return "Unknown internal error occurred"; } - std::string result = handle(type).attr("__name__").cast(); + auto result = handle(type).attr("__name__").cast(); result += ": "; if (value) {