18 m.def(
"test_function1", [](
int,
int) {},
py::arg(
"a"),
py::arg(
"b"));
19 m.def(
"test_function2", [](
int,
int) {},
py::arg(
"a"),
py::arg(
"b"),
"A custom docstring");
21 m.def(
"test_overloaded1", [](
int) {},
py::arg(
"i"),
"Overload docstring");
22 m.def(
"test_overloaded1", [](
double) {},
py::arg(
"d"));
24 m.def(
"test_overloaded2", [](
int) {},
py::arg(
"i"),
"overload docstring 1");
25 m.def(
"test_overloaded2", [](
double) {},
py::arg(
"d"),
"overload docstring 2");
27 m.def(
"test_overloaded3", [](
int) {},
py::arg(
"i"));
28 m.def(
"test_overloaded3", [](
double) {},
py::arg(
"d"),
"Overload docstr");
32 m.def(
"test_function3", [](
int,
int) {},
py::arg(
"a"),
py::arg(
"b"));
33 m.def(
"test_function4", [](
int,
int) {},
py::arg(
"a"),
py::arg(
"b"),
"A custom docstring");
37 m.def(
"test_function5", [](
int,
int) {},
py::arg(
"a"),
py::arg(
"b"),
"A custom docstring");
42 m.def(
"test_function6", [](
int,
int) {},
py::arg(
"a"),
py::arg(
"b"),
"A custom docstring");
46 m.def(
"test_function7", [](
int,
int) {},
py::arg(
"a"),
py::arg(
"b"),
"A custom docstring");
52 struct DocstringTestFoo {
54 void setValue(
int v) { value = v; }
55 int getValue()
const {
return value; }
58 .def_property(
"value_prop", &DocstringTestFoo::getValue, &DocstringTestFoo::setValue,
"This is a property docstring")
options & enable_user_defined_docstrings() &
test_initializer docstring_options("docstring_options", test_submodule_docstring_options)
options & enable_function_signatures() &
options & disable_function_signatures() &
#define TEST_SUBMODULE(name, variable)
options & disable_user_defined_docstrings() &