@@ -86,20 +86,30 @@ TEST_SUBMODULE(docstring_options, m) {
86
86
" This is a property docstring" );
87
87
}
88
88
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; },
90
92
" 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; },
92
96
" Add two floating point numbers together." );
93
97
94
98
{
95
99
py::options options;
96
100
options.disable_function_signatures ();
97
101
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; },
99
105
" 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; },
101
109
" 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 (); },
103
113
" Both numbers can be None, and None will be returned." );
104
114
}
105
115
}
0 commit comments