File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5- from typing import TYPE_CHECKING
6-
75from docutils import nodes
86from sphinx .util .docutils import SphinxRole
97
8+ TYPE_CHECKING = False
109if 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 )
You can’t perform that action at this time.
0 commit comments