@@ -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