From 8b931e0b47218817a60508e32036d9bc8b607cb5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 16 Aug 2024 20:52:39 +0000 Subject: [PATCH] style: pre-commit fixes --- tests/test_docstring_options.cpp | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/tests/test_docstring_options.cpp b/tests/test_docstring_options.cpp index 7984597e9..8bdb2cd9d 100644 --- a/tests/test_docstring_options.cpp +++ b/tests/test_docstring_options.cpp @@ -27,18 +27,28 @@ TEST_SUBMODULE(docstring_options, m) { m.def("test_overloaded3", [](int) {}, py::arg("i")); m.def("test_overloaded3", [](double) {}, py::arg("d"), "Overload docstr"); - m.def("test_overloaded4", [](int a, int b)->int { return a + b; }, + m.def( + "test_overloaded4", + [](int a, int b) -> int { return a + b; }, "A function which adds two numbers.\n"); - m.def("test_overloaded4", [](float a, float b)->float { return a + b; }, + m.def( + "test_overloaded4", + [](float a, float b) -> float { return a + b; }, "Internally, a simple addition is performed."); - m.def("test_overloaded4", [](const py::none&, const py::none&)->py::none { return py::none(); }, + m.def( + "test_overloaded4", + [](const py::none &, const py::none &) -> py::none { return py::none(); }, "Both numbers can be None, and None will be returned."); options.enable_function_signatures(); - m.def("test_overloaded5", [](int a, int b)->int { return a + b; }, + m.def( + "test_overloaded5", + [](int a, int b) -> int { return a + b; }, "Add two integers together."); - m.def("test_overloaded5", [](float a, float b)->float { return a + b; }, + m.def( + "test_overloaded5", + [](float a, float b) -> float { return a + b; }, "Add two floating point numbers together."); m.def("test_function3", [](int, int) {}, py::arg("a"), py::arg("b"));