use std::move

This commit is contained in:
Michael Carlstrom 2024-12-05 15:46:44 -05:00
parent c8edd09f06
commit 259ce93782

View File

@ -2569,7 +2569,7 @@ template <typename D>
// Always a dict
object object_api<D>::annotations() const {
dict annotations_dict = getattr(derived(), "__annotations__", dict());
return annotations_dict;
return std::move(annotations_dict);
}
template <typename D>