Skip to content

Commit ea43b3d

Browse files
order: remove deprecated enum value from doctest
1 parent 6386af0 commit ea43b3d

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

src/order.cpp

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,8 +1409,8 @@ Reinitialize a {0} object from a {1} list.
14091409
)pbdoc",
14101410
name);
14111411
py::class_<Cmp> thing(m,
1412-
binding_name,
1413-
fmt::format(R"pbdoc(
1412+
binding_name,
1413+
fmt::format(R"pbdoc(
14141414
Compare words using {2}.
14151415
14161416
Use ``{0}({1})`` to compare either ``str`` or ``list[int]`` words. In this
@@ -1438,11 +1438,11 @@ type as *alphabet*.
14381438
True
14391439
{3}
14401440
)pbdoc",
1441-
name,
1442-
configuration,
1443-
ordering,
1444-
non_alphabet_string_doctest)
1445-
.c_str());
1441+
name,
1442+
configuration,
1443+
ordering,
1444+
non_alphabet_string_doctest)
1445+
.c_str());
14461446

14471447
thing.def(py::init<Alphabet<Word> const&, std::vector<size_t> const&>(),
14481448
py::arg("alphabet"),
@@ -2836,7 +2836,7 @@ Return the alphabet used to compare letters.
28362836
)pbdoc",
28372837
py::return_value_policy::reference_internal);
28382838
} // bind_rev_lenlex_cmp_with_alphabet
2839-
} // namespace
2839+
} // namespace
28402840

28412841
void init_order(py::module& m) {
28422842
py::options options;
@@ -2905,8 +2905,6 @@ respectively, in new code.
29052905
>>> from libsemigroups_pybind11 import Order
29062906
>>> Order.lenlex
29072907
<Order.lenlex: 1>
2908-
>>> Order.shortlex == Order.lenlex
2909-
True
29102908
)pbdoc")
29112909
.value("none", Order::none)
29122910
.value("lenlex", Order::lenlex)

0 commit comments

Comments
 (0)