remove stdmove

This commit is contained in:
Michael Carlstrom 2024-12-05 16:11:24 -05:00
parent 7e380e2848
commit b8ad03da76
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -1104,6 +1104,7 @@ def test_dict_ranges(tested_dict, expected):
def get_annotations_helper(o):
print(help(o))
return getattr(o, "__annotations__", None)