Skip to content

Commit f02c3b1

Browse files
Replace Tuple -> tuple
1 parent 151b4d3 commit f02c3b1

6 files changed

Lines changed: 17 additions & 17 deletions

File tree

src/froidure-pin-base.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ complete set of rules, then use :any:`normal_forms` instead.
648648
fp.cend_current_rules());
649649
},
650650
R"pbdoc(
651-
:sig=(fp: FroidurePin) -> Iterator[Tuple[list[int],list[int]]]:
651+
:sig=(fp: FroidurePin) -> Iterator[tuple[list[int],list[int]]]:
652652
653653
Returns an iterator yielding the so-far enumerated rules.
654654
@@ -664,7 +664,7 @@ to obtain the complete set of rules, then use :any:`rules` instead.
664664
665665
:returns:
666666
An iterator.
667-
:rtype: Iterator[Tuple[list[int], list[int]]]
667+
:rtype: Iterator[tuple[list[int], list[int]]]
668668
669669
:complexity: Constant
670670
@@ -740,7 +740,7 @@ then use :any:`current_normal_forms` instead.
740740
return py::make_iterator(fp.cbegin_rules(), fp.cend_rules());
741741
},
742742
R"pbdoc(
743-
:sig=(fp: FroidurePin) -> Iterator[Tuple[list[int],list[int]]]:
743+
:sig=(fp: FroidurePin) -> Iterator[tuple[list[int],list[int]]]:
744744
745745
Returns an iterator yielding the rules.
746746
@@ -758,7 +758,7 @@ use :any:`current_rules` instead.
758758
:returns:
759759
An iterator yielding rules.
760760
:rtype:
761-
Iterator[Tuple[list[int],list[int]]]:
761+
Iterator[tuple[list[int],list[int]]]:
762762
)pbdoc");
763763
}
764764
} // init_froidure_pin_base

src/knuth-bendix-impl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ to the re-initialisation of rules where possible.
376376
return py::make_iterator(rx::begin(rules), rx::end(rules));
377377
},
378378
R"pbdoc(
379-
:sig=(self: KnuthBendix) -> Iterator[Tuple[str, str]]:
379+
:sig=(self: KnuthBendix) -> Iterator[tuple[str, str]]:
380380
381381
Return a copy of the active rules.
382382
@@ -388,7 +388,7 @@ according to the reduction ordering used by the rewriting system, on the first
388388
entry.
389389
390390
:return: An iterator yielding the currently active rules.
391-
:rtype: Iterator[Tuple[str, str]]
391+
:rtype: Iterator[tuple[str, str]]
392392
)pbdoc");
393393

394394
//////////////////////////////////////////////////////////////////////////

src/knuth-bendix.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ Check if the all rules are reduced with respect to each other.
287287
return {};
288288
},
289289
R"pbdoc(
290-
:sig=(p: Presentation, t: datetime.timedelta) -> Tuple[list[int], list[int]] | Tuple[str, str] | None:
290+
:sig=(p: Presentation, t: datetime.timedelta) -> tuple[list[int], list[int]] | tuple[str, str] | None:
291291
:only-document-once:
292292
293293
Return a redundant rule or ``None``.
@@ -308,7 +308,7 @@ redundant in this way, then ``None`` is returned.
308308
:type t: datetime.timedelta
309309
310310
:returns: A redundant rule or ``None``.
311-
:rtype: Tuple[list[int], list[int]] | Tuple[str, str] | None
311+
:rtype: tuple[list[int], list[int]] | tuple[str, str] | None
312312
313313
.. warning::
314314
The progress of the Knuth-Bendix algorithm may differ between
@@ -342,7 +342,7 @@ redundant in this way, then ``None`` is returned.
342342
return {};
343343
},
344344
R"pbdoc(
345-
:sig=(p: Presentation, t: datetime.timedelta) -> Tuple[list[int], list[int]] | Tuple[str, str] | None:
345+
:sig=(p: Presentation, t: datetime.timedelta) -> tuple[list[int], list[int]] | tuple[str, str] | None:
346346
:only-document-once:
347347
TODO where's the doc?
348348
)pbdoc");

src/todd-coxeter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ enumeration of ``tc``.)pbdoc",
406406
py::arg("p"),
407407
py::arg("t"),
408408
R"pbdoc(
409-
:sig=(p: Presentation, t: timedelta) -> Tuple[list[int], list[int]] | Tuple[str, str] | None:
409+
:sig=(p: Presentation, t: timedelta) -> tuple[list[int], list[int]] | tuple[str, str] | None:
410410
:only-document-once:
411411
412412
Return a redundant rule or ``None``.
@@ -426,7 +426,7 @@ be shown to be redundant in this way, then ``None`` is returned.
426426
:type t: timedelta
427427
428428
:returns: A redundant rule or ``None``.
429-
:rtype: Tuple[list[int], list[int]] | Tuple[str, str] | None
429+
:rtype: tuple[list[int], list[int]] | tuple[str, str] | None
430430
)pbdoc");
431431

432432
m.def(
@@ -440,7 +440,7 @@ be shown to be redundant in this way, then ``None`` is returned.
440440
return {};
441441
},
442442
R"pbdoc(
443-
:sig=(p: Presentation, t: timedelta) -> Tuple[list[int], list[int]] | Tuple[str, str] | None:
443+
:sig=(p: Presentation, t: timedelta) -> tuple[list[int], list[int]] | tuple[str, str] | None:
444444
:only-document-once:
445445
)pbdoc");
446446

src/ukkonen.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ overlapping) of the words in the suffix tree *u*.
455455
py::arg("u"),
456456
py::arg("w"),
457457
R"pbdoc(
458-
:sig=(u: Ukkonen, w: str | list[int]) -> Tuple[Ukkonen.State, str | list[int]]:
458+
:sig=(u: Ukkonen, w: str | list[int]) -> tuple[Ukkonen.State, str | list[int]]:
459459
:only-document-once:
460460
Traverse the suffix tree from the root.
461461
@@ -471,7 +471,7 @@ traversal is returned.
471471
:type w: str | list[int]
472472
473473
:returns: A tuple containing the :any:`State` reached, and the word consumed.
474-
:rtype: Tuple[Ukkonen.State, str | list[int]]
474+
:rtype: tuple[Ukkonen.State, str | list[int]]
475475
476476
:raises LibsemigroupsError: if ``u.throw_if_contains_unique_letter(w)`` throws.
477477

src/word-graph.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ equal to *a* that is incident to the node *s*. If ``target(s, b)`` equals
370370
:returns:
371371
Returns a pair where the first entry is the next label after *a* and the
372372
second is the next target of *s* that is not :any:`UNDEFINED`.
373-
:rtype: Tuple[int | Undefined, int | Undefined]
373+
:rtype: tuple[int | Undefined, int | Undefined]
374374
375375
:complexity: At worst :math:`O(n)` where :math:`n` equals :any:`out_degree()`.
376376
@@ -1128,7 +1128,7 @@ position in the word reached.
11281128
:returns:
11291129
A pair consisting of the last node reached and the index of
11301130
the last letter in the word labelling an edge.
1131-
:rtype: Tuple[int, int]
1131+
:rtype: tuple[int, int]
11321132
11331133
:complexity: At worst the length of *w*.)pbdoc");
11341134

@@ -1327,7 +1327,7 @@ spanning tree corresponds to the order *val*.
13271327
this function (i.e. it was not standardized already), and ``False``
13281328
otherwise. The second entry is a :any:`Forest` object containing a spanning
13291329
tree for *wg*.
1330-
:rtype: Tuple[bool, Forest]
1330+
:rtype: tuple[bool, Forest]
13311331
)pbdoc");
13321332

13331333
m.def(

0 commit comments

Comments
 (0)