@@ -66,38 +66,16 @@ namespace libsemigroups {
6666 }
6767 }
6868
69- // TODO move to types.cpp
70- // This has its own function so the py::options can be set for just this enum
71- void init_tril (py::module & m) {
72- py::options options;
73- options.disable_enum_members_docstring ();
74- py::enum_<tril>(m, " tril" , R"pbdoc(
75- The values in this enum can be used to indicate a result is true, false, or not
76- currently known.
77-
78- The valid values are:
79-
80- .. py:attribute:: tril.false
81- :value: <tril.false: 0>
82-
83- Value representing false.
84-
85- .. py:attribute:: tril.true
86- :value: <tril.true: 1>
87-
88- Value representing true.
89-
90- .. py:attribute:: tril.unknown
91- :value: <tril.unknown: 2>
92-
93- Value representing unknown (either true or false).
94- )pbdoc" )
95- .value (" true" , tril::TRUE )
96- .value (" false" , tril::FALSE )
97- .value (" unknown" , tril::unknown);
98- }
99-
10069 PYBIND11_MODULE (_libsemigroups_pybind11, m) {
70+ // //////////////////////////////////////////////////////////////////////
71+ // Module attributes
72+ // //////////////////////////////////////////////////////////////////////
73+
74+ #ifdef VERSION_INFO
75+ m.attr (" __version__" ) = VERSION_INFO ;
76+ #else
77+ m.attr (" __version__" ) = " dev" ;
78+ #endif
10179#ifdef LIBSEMIGROUPS_EIGEN_ENABLED
10280 m.attr (" LIBSEMIGROUPS_EIGEN_ENABLED" )
10381 = static_cast <bool >(LIBSEMIGROUPS_EIGEN_ENABLED );
@@ -141,7 +119,7 @@ The valid values are:
141119 init_constants (m);
142120 init_reporter (m);
143121 init_runner (m);
144- init_tril (m);
122+ init_types (m);
145123
146124 // //////////////////////////////////////////////////////////////////////
147125 // Classes in (almost) alphabetical order
@@ -191,28 +169,10 @@ The valid values are:
191169 init_word_graph (m);
192170 init_words (m);
193171
194- #ifdef VERSION_INFO
195- m.attr (" __version__" ) = VERSION_INFO ;
196- #else
197- m.attr (" __version__" ) = " dev" ;
198- #endif
199-
200172 // //////////////////////////////////////////////////////////////////////
201- // Enums
173+ // Miscellaneous
202174 // //////////////////////////////////////////////////////////////////////
203175
204- // TODO to types.cpp
205- py::enum_<congruence_kind>(m, " congruence_kind" , R"pbdoc(
206- The values in this class can be used to indicate that a congruence should
207- be 1-sided or 2-sided.
208- )pbdoc" )
209- .value (" onesided" ,
210- congruence_kind::onesided,
211- R"pbdoc( Type for 1-sided congruences (right).)pbdoc" )
212- .value (" twosided" ,
213- congruence_kind::twosided,
214- R"pbdoc( Type for 2-sided congruences.)pbdoc" );
215-
216176 py::class_<ReportGuard>(m,
217177 " ReportGuard" ,
218178 R"pbdoc(
0 commit comments