Skip to content

Commit 4391959

Browse files
committed
Trac #21325: remove empty lines, fix punctuation
1 parent a73b156 commit 4391959

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

src/sage/combinat/k_regular_sequence.py

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@ def pad_right(T, length, zero=0):
106106
107107
INPUT:
108108
109-
- ``T`` -- A tuple, list or other iterable.
109+
- ``T`` -- A tuple, list or other iterable
110110
111-
- ``length`` -- a nonnegative integer.
111+
- ``length`` -- a nonnegative integer
112112
113-
- ``zero`` -- (default: ``0``) the elements to pad with.
113+
- ``zero`` -- (default: ``0``) the elements to pad with
114114
115115
OUTPUT:
116116
117-
An object of the same type as ``T``.
117+
An object of the same type as ``T``
118118
119119
EXAMPLES::
120120
@@ -276,17 +276,16 @@ def __iter__(self):
276276
from itertools import count
277277
return iter(self[n] for n in count())
278278

279-
280279
def subsequence(self, a, b, minimize=True):
281280
r"""
282281
Return the subsequence with indices `an+b` of this
283282
`k`-regular sequence.
284283
285284
INPUT:
286285
287-
- ``a`` -- a nonnegative integer.
286+
- ``a`` -- a nonnegative integer
288287
289-
- ``b`` -- an integer.
288+
- ``b`` -- an integer
290289
291290
Alternatively, this is allowed to be a dictionary
292291
`b_j \mapsto c_j`. If so, the result will be the sum
@@ -297,7 +296,7 @@ def subsequence(self, a, b, minimize=True):
297296
298297
OUTPUT:
299298
300-
A :class:`kRegularSequence`.
299+
A :class:`kRegularSequence`
301300
302301
.. NOTE::
303302
@@ -466,7 +465,6 @@ def mu_line(r, i, c):
466465
else:
467466
return result
468467

469-
470468
def backward_differences(self, **kwds):
471469
r"""
472470
Return the sequence of backward differences of this
@@ -479,7 +477,7 @@ def backward_differences(self, **kwds):
479477
480478
OUTPUT:
481479
482-
A :class:`kRegularSequence`.
480+
A :class:`kRegularSequence`
483481
484482
.. NOTE::
485483
@@ -506,7 +504,6 @@ def backward_differences(self, **kwds):
506504
"""
507505
return self.subsequence(1, {0: 1, -1: -1}, **kwds)
508506

509-
510507
def forward_differences(self, **kwds):
511508
r"""
512509
Return the sequence of forward differences of this
@@ -519,7 +516,7 @@ def forward_differences(self, **kwds):
519516
520517
OUTPUT:
521518
522-
A :class:`kRegularSequence`.
519+
A :class:`kRegularSequence`
523520
524521
EXAMPLES::
525522
@@ -542,7 +539,6 @@ def forward_differences(self, **kwds):
542539
"""
543540
return self.subsequence(1, {1: 1, 0: -1}, **kwds)
544541

545-
546542
def partial_sums(self, include_n=False, minimize=True):
547543
r"""
548544
Return the sequence of partial sums of this
@@ -560,7 +556,7 @@ def partial_sums(self, include_n=False, minimize=True):
560556
561557
OUTPUT:
562558
563-
A :class:`kRegularSequence`.
559+
A :class:`kRegularSequence`
564560
565561
EXAMPLES::
566562

0 commit comments

Comments
 (0)