Skip to content

Commit 13b86a4

Browse files
committed
-
1 parent 83b71c7 commit 13b86a4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

python_toolbox/sequence_tools.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,15 @@ def partitions(sequence, partition_size=None, n_partitions=None,
9999
100100
If you want the remainder partition to be of equal size with the other
101101
partitions, you can specify `fill_value` as the padding for the last
102-
partition. A specified value for `fill_value` implies `allow_remainder=True`
103-
and will cause an exception to be raised if specified with
104-
`allow_remainder=False`.
102+
partition. A specified value for `fill_value` implies
103+
`allow_remainder=True` and will cause an exception to be raised if
104+
specified with `allow_remainder=False`.
105105
106106
Example:
107107
108108
>>> partitions([0, 1, 2, 3, 4], 3, fill_value=None)
109109
[[0, 1, 2], [3, 4, None]]
110+
110111
'''
111112

112113
sequence_length = len(sequence)

0 commit comments

Comments
 (0)