Skip to content

Commit

Permalink
remove stdmove
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed Dec 5, 2024
1 parent 7e380e2 commit b8ad03d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions include/pybind11/pytypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions tests/test_pytypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,7 @@ def test_dict_ranges(tested_dict, expected):


def get_annotations_helper(o):
print(help(o))
return getattr(o, "__annotations__", None)


Expand Down

0 comments on commit b8ad03d

Please sign in to comment.