Skip to content

Commit d0318a0

Browse files
committed
Trac #21318: fix empty lines and punctuation
1 parent c0e49a9 commit d0318a0

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

src/sage/combinat/recognizable_series.py

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,6 @@ def coefficient_of_word(self, w, multiply_left=True, multiply_right=True):
656656
result = result * self.right
657657
return result
658658

659-
660659
__getitem__ = coefficient_of_word
661660

662661
@cached_method
@@ -1080,7 +1079,6 @@ def alpha(c):
10801079
P = self.parent()
10811080
return P.element_class(P, mu_prime, left_prime, right_prime)
10821081

1083-
10841082
def dimension(self):
10851083
r"""
10861084
Return the dimension of this recognizable series.
@@ -1103,7 +1101,7 @@ def _add_(self, other):
11031101
INPUT:
11041102
11051103
- ``other`` -- a :class:`RecognizableSeries` with the same parent
1106-
as this recognizable series.
1104+
as this recognizable series
11071105
11081106
- ``minimize`` -- (default: ``None``) a boolean or ``None``.
11091107
If ``True``, then :meth:`minimized` is called after the operation,
@@ -1142,14 +1140,13 @@ def _add_(self, other):
11421140

11431141
return result
11441142

1145-
11461143
def _neg_(self):
11471144
r"""
11481145
Return the additive inverse of this recognizable series.
11491146
11501147
OUTPUT:
11511148
1152-
A :class:`RecognizableSeries`.
1149+
A :class:`RecognizableSeries`
11531150
11541151
EXAMPLES::
11551152
@@ -1165,19 +1162,18 @@ def _neg_(self):
11651162
P = self.parent()
11661163
return P.element_class(P, self.mu, -self.left, self.right)
11671164

1168-
11691165
def _rmul_(self, other):
11701166
r"""
11711167
Multiply this recognizable series from the right
11721168
by an element ``other`` of its coefficient (semi-)ring.
11731169
11741170
INPUT:
11751171
1176-
- ``other`` -- an element of the coefficient (semi-)ring.
1172+
- ``other`` -- an element of the coefficient (semi-)ring
11771173
11781174
OUTPUT:
11791175
1180-
A :class:`RecognizableSeries`.
1176+
A :class:`RecognizableSeries`
11811177
11821178
EXAMPLES::
11831179
@@ -1196,19 +1192,18 @@ def _rmul_(self, other):
11961192
P = self.parent()
11971193
return P.element_class(P, self.mu, self.left, self.right*other)
11981194

1199-
12001195
def _lmul_(self, other):
12011196
r"""
12021197
Multiply this recognizable series from the left
12031198
by an element ``other`` of its coefficient (semi-)ring.
12041199
12051200
INPUT:
12061201
1207-
- ``other`` -- an element of the coefficient (semi-)ring.
1202+
- ``other`` -- an element of the coefficient (semi-)ring
12081203
12091204
OUTPUT:
12101205
1211-
A :class:`RecognizableSeries`.
1206+
A :class:`RecognizableSeries`
12121207
12131208
EXAMPLES:
12141209
@@ -1245,7 +1240,7 @@ def hadamard_product(self, other):
12451240
INPUT:
12461241
12471242
- ``other`` -- a :class:`RecognizableSeries` with the same parent
1248-
as this recognizable series.
1243+
as this recognizable series
12491244
12501245
- ``minimize`` -- (default: ``None``) a boolean or ``None``.
12511246
If ``True``, then :meth:`minimized` is called after the operation,
@@ -1254,7 +1249,7 @@ def hadamard_product(self, other):
12541249
12551250
OUTPUT:
12561251
1257-
A :class:`RecognizableSeries`.
1252+
A :class:`RecognizableSeries`
12581253
12591254
EXAMPLES::
12601255
@@ -1334,7 +1329,6 @@ def hadamard_product(self, other):
13341329
return result
13351330

13361331

1337-
13381332
class RecognizableSeriesSpace(UniqueRepresentation, Parent):
13391333
r"""
13401334
The space of recognizable series on the given alphabet and
@@ -1600,7 +1594,7 @@ def one_hadamard(self):
16001594
16011595
OUTPUT:
16021596
1603-
A :class:`RecognizableSeries`.
1597+
A :class:`RecognizableSeries`
16041598
16051599
EXAMPLES::
16061600

0 commit comments

Comments
 (0)