mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-19 01:15:52 +00:00
remove stdmove
This commit is contained in:
parent
7e380e2848
commit
b8ad03da76
@ -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>
|
||||
|
@ -1104,6 +1104,7 @@ def test_dict_ranges(tested_dict, expected):
|
||||
|
||||
|
||||
def get_annotations_helper(o):
|
||||
print(help(o))
|
||||
return getattr(o, "__annotations__", None)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user