Skip to content

Commit 6fa8680

Browse files
AA-Turnerhugovk
andauthored
Hugo's review
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 0282cf3 commit 6fa8680

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Doc/tools/extensions/issue_role.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
from __future__ import annotations
44

5-
from typing import TYPE_CHECKING
6-
75
from docutils import nodes
86
from sphinx.util.docutils import SphinxRole
97

8+
TYPE_CHECKING = False
109
if TYPE_CHECKING:
1110
from docutils.nodes import Element
1211
from sphinx.application import Sphinx
@@ -23,7 +22,7 @@ def run(self) -> tuple[list[Element], list[nodes.system_message]]:
2322
if 47_261 < int(issue) < 400_000:
2423
msg = self.inliner.reporter.error(
2524
f"The BPO ID {issue!r} seems too high. "
26-
"Use :gh:`...` for GitHub IDs",
25+
"Use :gh:`...` for GitHub IDs.",
2726
line=self.lineno,
2827
)
2928
prb = self.inliner.problematic(self.rawtext, self.rawtext, msg)
@@ -46,7 +45,7 @@ def run(self) -> tuple[list[Element], list[nodes.system_message]]:
4645
if int(issue) < 32_426:
4746
msg = self.inliner.reporter.error(
4847
f"The GitHub ID {issue!r} seems too low. "
49-
"Use :issue:`...` for BPO IDs",
48+
"Use :issue:`...` for BPO IDs.",
5049
line=self.lineno,
5150
)
5251
prb = self.inliner.problematic(self.rawtext, self.rawtext, msg)

0 commit comments

Comments
 (0)