Skip to content

Commit 2e487ef

Browse files
Joseph-Edwardsjames-d-mitchell
authored andcommitted
Fix KB constructor overloads
1 parent 4af51a1 commit 2e487ef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/knuth-bendix.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ two words :math:`AB` and :math:`BC`.
307307

308308
kb.def(py::init<>(),
309309
R"pbdoc(
310+
:sig=() -> None:
311+
:only-document-once:
310312
Constructs a :any:`KnuthBendixRewriteTrie` instance with no
311313
rules, and the short-lex reduction ordering.
312314
@@ -317,9 +319,9 @@ instance.
317319
py::arg("knd"),
318320
py::arg("p"),
319321
// TODO(0) this constructor's doc is duplicated, but including
320-
// :only-document-once: suppresses the default constructors doc.
321322
R"pbdoc(
322323
:sig=(knd: congruence_kind, p: PresentationStrings) -> None:
324+
:only-document-once:
323325
324326
Construct from :any:`congruence_kind` and :any:`PresentationStrings`.
325327
@@ -337,7 +339,7 @@ presentation *p*.
337339
.def(py::init<congruence_kind, Presentation<word_type> const&>(),
338340
R"pbdoc(
339341
:sig=(knd: congruence_kind, p: PresentationStrings) -> None:
340-
TODO(0) remove this
342+
:only-document-once:
341343
)pbdoc")
342344
.def(
343345
"init",

0 commit comments

Comments
 (0)