Skip to content

Commit f0042a1

Browse files
committed
docstring
1 parent 51d0d62 commit f0042a1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/toolong/log_file.py

+8
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ def read(self, size: int) -> bytes:
139139
def scan_line_breaks(
140140
self, batch_time: float = 0.25
141141
) -> Iterable[tuple[int, list[int]]]:
142+
"""Scan the file for line breaks.
143+
144+
Args:
145+
batch_time: Time to group the batches.
146+
147+
Returns:
148+
An iterable of tuples, containing the scan position and a list of offsets of new lines.
149+
"""
142150
fileno = self.fileno
143151
size = self.size
144152
if not size:

0 commit comments

Comments
 (0)