Skip to content

Commit 782dd71

Browse files
Joseph-Edwardsjames-d-mitchell
authored andcommitted
Fix ToddCoxeter constructor overloads
1 parent c31641f commit 782dd71

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/todd-coxeter.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ definitions in the stack exceeds the value :any:`ToddCoxeter.def_max`.
246246

247247
thing.def(py::init<>(),
248248
R"pbdoc(
249+
:sig=(self: ToddCoxeter) -> None:
250+
:only-document-once:
249251
Default constructor. This function default constructs an uninitialised
250252
:any:`ToddCoxeter` instance.
251253
)pbdoc");
@@ -285,7 +287,8 @@ Copy a :any:`ToddCoxeter` object.
285287
py::arg("knd"),
286288
py::arg("p"),
287289
R"pbdoc(
288-
:sig=(self: ToddCoxeter, knd: congruence_kind, p: Presentation) -> None:
290+
:sig=(self: ToddCoxeter, knd: congruence_kind, p: PresentationStrings) -> None:
291+
:only-document-once:
289292
290293
Construct from :any:`congruence_kind` and :any:`PresentationStrings`.
291294
@@ -309,15 +312,16 @@ converted presentation can be recovered using :any:`ToddCoxeter.presentation`.
309312
py::arg("knd"),
310313
py::arg("p"),
311314
R"pbdoc(
312-
:sig=(self: ToddCoxeter, knd: congruence_kind, p: Presentation) -> None:
313-
TODO(0) make this disappear
315+
:sig=(self: ToddCoxeter, knd: congruence_kind, p: PresentationStrings) -> None:
316+
:only-document-once:
314317
)pbdoc");
315318

316319
thing.def(py::init<congruence_kind, ToddCoxeter&>(),
317320
py::arg("knd"),
318321
py::arg("tc"),
319322
R"pbdoc(
320323
:sig=(self: ToddCoxeter, knd: congruence_kind, tc: ToddCoxeter) -> None:
324+
:only-document-once:
321325
322326
Construct from :any:`congruence_kind` and :any:`ToddCoxeter`.
323327
@@ -343,6 +347,8 @@ the word graph represented by *tc*.
343347
py::arg("wg"),
344348
R"pbdoc(
345349
:sig=(self: ToddCoxeter, knd: congruence_kind, wg: WordGraph) -> None:
350+
:only-document-once:
351+
346352
Construct from :any:`congruence_kind` and :any:`WordGraph`.
347353
348354
This function constructs a :any:`ToddCoxeter` instance representing a

0 commit comments

Comments
 (0)