From 259ce9378294a0e54f6a7261c92cfaa684ade25a Mon Sep 17 00:00:00 2001 From: Michael Carlstrom Date: Thu, 5 Dec 2024 15:46:44 -0500 Subject: [PATCH] use std::move --- include/pybind11/pytypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/pytypes.h b/include/pybind11/pytypes.h index 2b9688e05..cb77cc818 100644 --- a/include/pybind11/pytypes.h +++ b/include/pybind11/pytypes.h @@ -2569,7 +2569,7 @@ template // Always a dict object object_api::annotations() const { dict annotations_dict = getattr(derived(), "__annotations__", dict()); - return annotations_dict; + return std::move(annotations_dict); } template