@@ -64,23 +64,24 @@ class BulletBlocks(NamedTuple):
6464 - blocks: list of (label, block-lines) pairs for each bullet block.
6565 - suffix: lines after the last bullet within the section range.
6666 """
67+
6768 prefix : Lines
6869 blocks : List [BulletItem ]
6970 suffix : Lines
7071
72+
7173class ScannedBlocks (NamedTuple ):
7274 """Result of scanning bullet blocks within a section range.
7375
7476 - blocks_with_pos: list of (start_index, block_lines) for each bullet block.
7577 - next_index: index where scanning stopped; start of the suffix region.
7678 """
79+
7780 blocks_with_pos : List [Tuple [BulletStart , BulletBlock ]]
7881 next_index : int
7982
8083
81- def _scan_bullet_blocks (
82- lines : Sequence [str ], start : int , end : int
83- ) -> ScannedBlocks :
84+ def _scan_bullet_blocks (lines : Sequence [str ], start : int , end : int ) -> ScannedBlocks :
8485 """Scan consecutive bullet blocks and return (blocks_with_pos, next_index).
8586
8687 Each entry in blocks_with_pos is a tuple of (start_index, block_lines).
@@ -188,9 +189,7 @@ def _is_bullet_start(line: str) -> bool:
188189 return line .startswith ("- " )
189190
190191
191- def _parse_bullet_blocks (
192- lines : Sequence [str ], start : int , end : int
193- ) -> BulletBlocks :
192+ def _parse_bullet_blocks (lines : Sequence [str ], start : int , end : int ) -> BulletBlocks :
194193 i = start
195194 n = end
196195 first_bullet = i
@@ -204,7 +203,7 @@ def _parse_bullet_blocks(
204203 key : CheckLabel = extract_label (block [0 ])
205204 blocks .append ((key , block ))
206205
207- suffix : Lines = list (lines [res .next_index : n ])
206+ suffix : Lines = list (lines [res .next_index : n ])
208207 return BulletBlocks (prefix , blocks , suffix )
209208
210209
0 commit comments