Skip to content

Commit 21250b1

Browse files
committed
Update to Sphinx 9
1 parent 333dce2 commit 21250b1

5 files changed

Lines changed: 20 additions & 12 deletions

File tree

docs-requirements.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# RTD is currently installing 1.5.3, which has a bug in :lineno-match: (??)
2-
# sphinx 5.3 doesn't work with our _NoValue workaround, 9.0 breaks sphinxcontrib-trio
3-
sphinx >= 6.0,<9.0
2+
# sphinx 5.3 doesn't work with our _NoValue workaround
3+
sphinx >= 6.0
44
jinja2
55
# >= is necessary to prevent `uv` from selecting a `Sphinx` version this does not support
66
sphinx_rtd_theme >= 3

docs-requirements.txt

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ colorama==0.4.6 ; sys_platform == 'win32'
2626
# sphinx
2727
cryptography==46.0.3
2828
# via pyopenssl
29-
docutils==0.21.2
29+
docutils==0.22.4
3030
# via
3131
# sphinx
3232
# sphinx-rtd-theme
@@ -49,7 +49,7 @@ markupsafe==3.0.3
4949
# via jinja2
5050
outcome==1.3.0.post0
5151
# via -r docs-requirements.in
52-
packaging==25.0
52+
packaging==26.0
5353
# via sphinx
5454
pycparser==2.23 ; (implementation_name != 'PyPy' and os_name == 'nt') or (implementation_name != 'PyPy' and platform_python_implementation != 'PyPy')
5555
# via cffi
@@ -60,8 +60,6 @@ pyopenssl==25.3.0
6060
requests==2.32.5
6161
# via sphinx
6262
roman-numerals==4.1.0
63-
# via roman-numerals-py
64-
roman-numerals-py==4.1.0
6563
# via sphinx
6664
sniffio==1.3.1
6765
# via -r docs-requirements.in
@@ -71,7 +69,14 @@ sortedcontainers==2.4.0
7169
# via -r docs-requirements.in
7270
soupsieve==2.8.2
7371
# via beautifulsoup4
74-
sphinx==8.2.3
72+
sphinx==9.0.4 ; python_full_version < '3.12'
73+
# via
74+
# -r docs-requirements.in
75+
# sphinx-codeautolink
76+
# sphinx-rtd-theme
77+
# sphinxcontrib-jquery
78+
# sphinxcontrib-trio
79+
sphinx==9.1.0 ; python_full_version >= '3.12'
7580
# via
7681
# -r docs-requirements.in
7782
# sphinx-codeautolink
@@ -98,7 +103,7 @@ sphinxcontrib-qthelp==2.0.0
98103
# via sphinx
99104
sphinxcontrib-serializinghtml==2.0.0
100105
# via sphinx
101-
sphinxcontrib-trio==1.1.2
106+
sphinxcontrib-trio==1.2.0
102107
# via -r docs-requirements.in
103108
towncrier==25.8.0
104109
# via -r docs-requirements.in

src/trio/_core/_generated_run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import contextvars
1313
from collections.abc import Awaitable, Callable
1414

15-
from outcome import Outcome
15+
import outcome
1616
from typing_extensions import Unpack
1717

1818
from .._abc import Clock
@@ -102,7 +102,7 @@ def current_root_task() -> Task | None:
102102

103103

104104
@enable_ki_protection
105-
def reschedule(task: Task, next_send: Outcome[object] = _NO_SEND) -> None:
105+
def reschedule(task: Task, next_send: outcome.Outcome[object] = _NO_SEND) -> None:
106106
"""Reschedule the given task with the given
107107
:class:`outcome.Outcome`.
108108

src/trio/_core/_run.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
)
2626

2727
import attrs
28+
import outcome
2829
from outcome import Error, Outcome, Value, capture
2930
from sniffio import thread_local as sniffio_library
3031
from sortedcontainers import SortedDict
@@ -1903,7 +1904,9 @@ def current_root_task(self) -> Task | None:
19031904
################
19041905

19051906
@_public
1906-
def reschedule(self, task: Task, next_send: Outcome[object] = _NO_SEND) -> None:
1907+
def reschedule(
1908+
self, task: Task, next_send: outcome.Outcome[object] = _NO_SEND
1909+
) -> None:
19071910
"""Reschedule the given task with the given
19081911
:class:`outcome.Outcome`.
19091912

src/trio/_tools/gen_exports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def main() -> None: # pragma: no cover
348348
from collections.abc import Awaitable, Callable
349349
from typing import Any, TYPE_CHECKING
350350
351-
from outcome import Outcome
351+
import outcome
352352
import contextvars
353353
354354
from ._run import _NO_SEND, RunStatistics, Task

0 commit comments

Comments
 (0)