Skip to content

Commit ad797ca

Browse files
Fix missing raise
1 parent 6faf85e commit ad797ca

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/cong-common.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ had been newly constructed from *knd* and *p*.
310310
:rtype: {name}
311311
312312
:raises LibsemigroupsError: if *p* is not valid.
313-
314313
{raises}
315314
)pbdoc",
316315
name,

src/kambites.cpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,15 @@ must always be ``congruence_kind.twosided``. The parameter *knd* is
6969
included for uniformity of interface between with
7070
:any:`KnuthBendix`, :any:`ToddCoxeter`, and
7171
:any:`Congruence`.)pbdoc"sv;
72-
73-
def_construct_kind_presentation(
74-
thing, "Kambites", doc{.detail = extra_detail});
75-
76-
// FIXME the following doesn't get included in the doc for some reason.
77-
// This is probably a problem in libsemigroups_pybind11_extensions.py,
78-
// since introducing an error in the string below goes yield a
79-
// warning/error in sphinx.
8072
auto extra_raises = R"pbdoc(
8173
:raises LibsemigroupsError: if *knd* is not ``congruence_kind.twosided``.
8274
)pbdoc"sv;
8375

76+
def_construct_kind_presentation(
77+
thing,
78+
"Kambites",
79+
doc{.detail = extra_detail, .raises = extra_raises});
80+
8481
def_init_kind_presentation(
8582
thing, "Kambites", doc{.raises = extra_raises});
8683

0 commit comments

Comments
 (0)