From adfed511e2959600ed956cf0baa8786a118f7360 Mon Sep 17 00:00:00 2001 From: Michael Carlstrom Date: Thu, 5 Dec 2024 22:20:34 -0500 Subject: [PATCH] cleanup --- include/pybind11/cast.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index a2040ad86..162e1884e 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -1335,8 +1335,7 @@ object object_or_cast(T &&o) { template template str_attr_accessor object_api::attr_with_type(const char *key) const { - static constexpr auto name = make_caster::name; - annotations()[key] = name.text; + annotations()[key] = make_caster::name.text; return {derived(), key}; } #endif