mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-28 22:02:43 +00:00
use std::move
This commit is contained in:
parent
c8edd09f06
commit
259ce93782
@ -2569,7 +2569,7 @@ template <typename D>
|
|||||||
// Always a dict
|
// Always a dict
|
||||||
object object_api<D>::annotations() const {
|
object object_api<D>::annotations() const {
|
||||||
dict annotations_dict = getattr(derived(), "__annotations__", dict());
|
dict annotations_dict = getattr(derived(), "__annotations__", dict());
|
||||||
return annotations_dict;
|
return std::move(annotations_dict);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename D>
|
template <typename D>
|
||||||
|
Loading…
Reference in New Issue
Block a user