We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2a77c6 commit acf0e47Copy full SHA for acf0e47
tests/test_pytypes.cpp
@@ -539,7 +539,7 @@ TEST_SUBMODULE(pytypes, m) {
539
m.def("hash_function", [](py::object obj) { return py::hash(std::move(obj)); });
540
541
m.def("obj_contains",
542
- [](py::object &obj, py::object key) { return obj.contains(std::move(key)); });
+ [](py::object &obj, const py::object &key) { return obj.contains(key); });
543
544
m.def("test_number_protocol", [](const py::object &a, const py::object &b) {
545
py::list l;
0 commit comments