From 375ea304e8c22f9743ca0cdf0f522a551940933d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 21:10:52 +0000 Subject: [PATCH] style: pre-commit fixes --- include/pybind11/cast.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 3d30ff37a..6a5ef1543 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -1379,7 +1379,8 @@ obj_attr_accessor object_api::attr_with_type_hint(handle key) const { object ann = annotations(); object reinterpreted_key = reinterpret_borrow(key); if (ann.contains(reinterpreted_key)) { - throw std::runtime_error("__annotations__[\"" + std::string(py::str(reinterpreted_key)) + "\"] was set already."); + throw std::runtime_error("__annotations__[\"" + std::string(py::str(reinterpreted_key)) + + "\"] was set already."); } ann[key] = make_caster::name.text; return {derived(), reinterpreted_key};