Skip to content

Commit 5d3bb2e

Browse files
authored
Support Docutils 0.22 (sphinx-doc#13786)
1 parent e00e771 commit 5d3bb2e

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

CHANGES.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ Release 8.3.0 (in development)
44
Dependencies
55
------------
66

7+
* #13786: Support `Docutils 0.22`_. Patch by Adam Turner.
8+
9+
.. _Docutils 0.22: https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-22-2026-07-29
10+
711
Incompatible changes
812
--------------------
913

doc/changes/7.3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Dependencies
8686

8787
* #11858: Increase the minimum supported version of Alabaster to 0.7.14.
8888
Patch by Adam Turner.
89-
* #11411: Support `Docutils 0.21`_. Patch by Adam Turner.
89+
* #12267: Support `Docutils 0.21`_. Patch by Adam Turner.
9090

9191
.. _Docutils 0.21: https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-21-2024-04-09
9292
* #12012: Use ``types-docutils`` instead of ``docutils-stubs``.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ dependencies = [
7676
"sphinxcontrib-serializinghtml>=1.1.9",
7777
"Jinja2>=3.1",
7878
"Pygments>=2.17",
79-
"docutils>=0.20,<0.22",
79+
"docutils>=0.20,<0.23",
8080
"snowballstemmer>=2.2",
8181
"babel>=2.13",
8282
"alabaster>=0.7.14",

sphinx/transforms/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def apply(self, **kwargs: Any) -> None:
372372
# override default settings with :confval:`smartquotes_action`
373373
self.smartquotes_action = self.config.smartquotes_action
374374

375-
super().apply() # type: ignore[no-untyped-call]
375+
super().apply()
376376

377377
def is_available(self) -> bool:
378378
builders = self.config.smartquotes_excludes.get('builders', [])

sphinx/transforms/references.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def apply(self, **kwargs: Any) -> None:
2525

2626
# suppress INFO level messages for a while
2727
reporter.report_level = max(reporter.WARNING_LEVEL, reporter.report_level)
28-
super().apply() # type: ignore[no-untyped-call]
28+
super().apply()
2929
finally:
3030
reporter.report_level = report_level
3131

tests/test_markup/test_markup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def parse_(rst):
6262
document = new_document()
6363
parser = RstParser()
6464
parser.parse(rst, document)
65-
SphinxSmartQuotes(document, startnode=None).apply() # type: ignore[no-untyped-call]
65+
SphinxSmartQuotes(document, startnode=None).apply()
6666
for msg in list(document.findall(nodes.system_message)):
6767
if msg['level'] == 1:
6868
msg.replace_self([])

0 commit comments

Comments
 (0)