Skip to content

Commit b006d01

Browse files
Apply a few final review suggestions from Adam
Co-authored-by: Adam Turner <[email protected]>
1 parent d8344a9 commit b006d01

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/tools/check-warnings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"""
33
Check the output of running Sphinx in nit-picky mode (missing references).
44
"""
5+
from __future__ import annotations
6+
57
import argparse
68
import itertools
79
import os
@@ -78,6 +80,7 @@ def get_diff_lines(ref_a: str, ref_b: str, file: Path) -> list[int]:
7880

7981
# Scrape line offsets + lengths from diff and convert to line numbers
8082
line_matches = DIFF_PATTERN.finditer(diff_output.stdout)
83+
# Removed and added line counts are 1 if not printed
8184
line_match_values = [
8285
line_match.groupdict(default=1) for line_match in line_matches
8386
]

0 commit comments

Comments
 (0)