File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,15 @@ class options {
47
47
return *this ;
48
48
}
49
49
50
- options& disable_enum_members_docstring () & { global_state ().show_enum_members_docstring = false ; return *this ; }
50
+ options &disable_enum_members_docstring () & {
51
+ global_state ().show_enum_members_docstring = false ;
52
+ return *this ;
53
+ }
51
54
52
- options& enable_enum_members_docstring () & { global_state ().show_enum_members_docstring = true ; return *this ; }
55
+ options &enable_enum_members_docstring () & {
56
+ global_state ().show_enum_members_docstring = true ;
57
+ return *this ;
58
+ }
53
59
54
60
// Getter methods (return the global state):
55
61
@@ -59,7 +65,9 @@ class options {
59
65
60
66
static bool show_function_signatures () { return global_state ().show_function_signatures ; }
61
67
62
- static bool show_enum_members_docstring () { return global_state ().show_enum_members_docstring ; }
68
+ static bool show_enum_members_docstring () {
69
+ return global_state ().show_enum_members_docstring ;
70
+ }
63
71
64
72
// This type is not meant to be allocated on the heap.
65
73
void *operator new (size_t ) = delete ;
Original file line number Diff line number Diff line change @@ -1981,7 +1981,8 @@ struct enum_base {
1981
1981
std::string docstring;
1982
1982
dict entries = arg.attr (" __entries" );
1983
1983
if (((PyTypeObject *) arg.ptr ())->tp_doc ) {
1984
- docstring += std::string (((PyTypeObject *) arg.ptr ())->tp_doc ) + " \n\n " ;
1984
+ docstring
1985
+ += std::string (((PyTypeObject *) arg.ptr ())->tp_doc ) + " \n\n " ;
1985
1986
}
1986
1987
docstring += " Members:" ;
1987
1988
for (auto kv : entries) {
You can’t perform that action at this time.
0 commit comments