Skip to content

Commit 9fa1e69

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a264547 commit 9fa1e69

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

tests/test_docstring_options.cpp

+15-5
Original file line numberDiff line numberDiff line change
@@ -86,20 +86,30 @@ TEST_SUBMODULE(docstring_options, m) {
8686
"This is a property docstring");
8787
}
8888

89-
m.def("test_overloaded4", [](int a, int b)->int { return a + b; },
89+
m.def(
90+
"test_overloaded4",
91+
[](int a, int b) -> int { return a + b; },
9092
"Add two integers together.");
91-
m.def("test_overloaded4", [](float a, float b)->float { return a + b; },
93+
m.def(
94+
"test_overloaded4",
95+
[](float a, float b) -> float { return a + b; },
9296
"Add two floating point numbers together.");
9397

9498
{
9599
py::options options;
96100
options.disable_function_signatures();
97101

98-
m.def("test_overloaded5", [](int a, int b)->int { return a + b; },
102+
m.def(
103+
"test_overloaded5",
104+
[](int a, int b) -> int { return a + b; },
99105
"A function which adds two numbers.\n");
100-
m.def("test_overloaded5", [](float a, float b)->float { return a + b; },
106+
m.def(
107+
"test_overloaded5",
108+
[](float a, float b) -> float { return a + b; },
101109
"Internally, a simple addition is performed.");
102-
m.def("test_overloaded5", [](const py::none&, const py::none&)->py::none { return py::none(); },
110+
m.def(
111+
"test_overloaded5",
112+
[](const py::none &, const py::none &) -> py::none { return py::none(); },
103113
"Both numbers can be None, and None will be returned.");
104114
}
105115
}

0 commit comments

Comments
 (0)