mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
fixup! Remove `productionlist
` hard-coding in translators
This commit is contained in:
parent
eed2524640
commit
aefc58164c
@ -104,6 +104,9 @@ Features added
|
||||
* #9169: Add the :confval:`intersphinx_resolve_self` option
|
||||
to resolve an intersphinx reference to the current project.
|
||||
Patch by Jakob Lykke Andersen and Adam Turner.
|
||||
* #13326: Remove hardcoding from handling :class:`~sphinx.addnodes.productionlist`
|
||||
nodes in all writers, to improve flexibility.
|
||||
Patch by Adam Turner.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
@ -620,7 +620,7 @@ class ProductionList(SphinxDirective):
|
||||
return [node]
|
||||
|
||||
@staticmethod
|
||||
def production_group(lines: Sequence[str], options: dict[str, Any]) -> str: # NoQA: ARG004
|
||||
def production_group(lines: list[str], options: dict[str, Any]) -> str: # NoQA: ARG004
|
||||
# get production_group
|
||||
if not lines or ':' in lines[0]:
|
||||
return ''
|
||||
|
Loading…
Reference in New Issue
Block a user