Skip to content

Commit aefc581

Browse files
committed
fixup! Remove productionlist hard-coding in translators
1 parent eed2524 commit aefc581

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ Features added
104104
* #9169: Add the :confval:`intersphinx_resolve_self` option
105105
to resolve an intersphinx reference to the current project.
106106
Patch by Jakob Lykke Andersen and Adam Turner.
107+
* #13326: Remove hardcoding from handling :class:`~sphinx.addnodes.productionlist`
108+
nodes in all writers, to improve flexibility.
109+
Patch by Adam Turner.
107110

108111
Bugs fixed
109112
----------

sphinx/domains/std/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ def run(self) -> list[Node]:
620620
return [node]
621621

622622
@staticmethod
623-
def production_group(lines: Sequence[str], options: dict[str, Any]) -> str: # NoQA: ARG004
623+
def production_group(lines: list[str], options: dict[str, Any]) -> str: # NoQA: ARG004
624624
# get production_group
625625
if not lines or ':' in lines[0]:
626626
return ''

0 commit comments

Comments
 (0)