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 c58c7b7 commit 14f8230Copy full SHA for 14f8230
tests/test_pytypes.cpp
@@ -240,6 +240,8 @@ TEST_SUBMODULE(pytypes, m) {
240
);
241
});
242
243
+ m.def("convert_to_pybind11_str", [](py::object o) { return py::str(o); });
244
+
245
m.def("get_implicit_casting", []() {
246
py::dict d;
247
d["char*_i1"] = "abc";
@@ -377,6 +379,4 @@ TEST_SUBMODULE(pytypes, m) {
377
379
m.def("pass_to_pybind11_bytes", [](py::bytes b) { return py::len(b); });
378
380
m.def("pass_to_pybind11_unicode", [](py::str s) { return py::len(s); });
381
m.def("pass_to_std_string", [](std::string s) { return s.size(); });
-
- m.def("convert_to_pybind11_str", [](py::object o) { return py::str(o); });
382
}
0 commit comments