@@ -91,12 +91,18 @@ Default constructor.
9191
9292Constructs an empty presentation with no rules and no alphabet.)pbdoc" );
9393 thing.def (
94- " __copy__ " ,
95- [](const Presentation_& that ) { return Presentation_ (that ); },
94+ " copy " ,
95+ [](Presentation_ const & self ) { return Presentation_ (self ); },
9696 R"pbdoc(
97- Default copy constructor.
97+ :sig=(self: Presentation) -> Presentation:
98+
99+ Copy a :any:`Presentation` object.
98100
99- Default copy constructor)pbdoc" );
101+ :returns: A copy.
102+ :rtype: Presentation
103+ )pbdoc" );
104+ thing.def (" __copy__" ,
105+ [](Presentation_ const & that) { return Presentation_ (that); });
100106 thing.def (
101107 " alphabet" ,
102108 [](Presentation_ const & self) { return self.alphabet (); },
@@ -1289,14 +1295,22 @@ Default constructor.
12891295Constructs an empty :any:`InversePresentation` with no rules, no alphabet and
12901296no inverses.)pbdoc" );
12911297 thing.def (
1292- " __copy__ " ,
1293- [](const InversePresentation_& that ) {
1294- return InversePresentation_ (that );
1298+ " copy " ,
1299+ [](InversePresentation_ const & self ) {
1300+ return InversePresentation_ (self );
12951301 },
12961302 R"pbdoc(
1297- Default copy constructor.
1303+ :sig=(self: InversePresentation) -> InversePresentation:
1304+
1305+ Copy a :any:`InversePresentation` object.
1306+
1307+ :returns: A copy.
1308+ :rtype: InversePresentation
1309+ )pbdoc" );
1310+ thing.def (" __copy__" , [](InversePresentation_ const & that) {
1311+ return InversePresentation_ (that);
1312+ });
12981313
1299- Default copy constructor)pbdoc" );
13001314 thing.def (" inverse" ,
13011315 &InversePresentation_::inverse,
13021316 py::arg (" x" ),
0 commit comments