Skip to content

Commit 60b9e14

Browse files
Dependency updates (#2897)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 783093f commit 60b9e14

File tree

7 files changed

+30
-31
lines changed

7 files changed

+30
-31
lines changed

docs-requirements.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,33 @@ attrs==23.1.0
1212
# outcome
1313
babel==2.13.1
1414
# via sphinx
15-
certifi==2023.7.22
15+
certifi==2023.11.17
1616
# via requests
1717
cffi==1.16.0
1818
# via cryptography
1919
charset-normalizer==3.3.2
2020
# via requests
2121
click==8.1.7
2222
# via towncrier
23-
cryptography==41.0.5
23+
cryptography==41.0.7
2424
# via pyopenssl
25-
docutils==0.18.1
25+
docutils==0.19
2626
# via
2727
# sphinx
2828
# sphinx-rtd-theme
29-
exceptiongroup==1.1.3
29+
exceptiongroup==1.2.0
3030
# via -r docs-requirements.in
31-
idna==3.4
31+
idna==3.6
3232
# via
3333
# -r docs-requirements.in
3434
# requests
3535
imagesize==1.4.1
3636
# via sphinx
3737
immutables==0.20
3838
# via -r docs-requirements.in
39-
importlib-metadata==6.8.0
39+
importlib-metadata==7.0.0
4040
# via sphinx
41-
importlib-resources==6.1.0
41+
importlib-resources==6.1.1
4242
# via towncrier
4343
incremental==22.10.0
4444
# via towncrier
@@ -55,7 +55,7 @@ packaging==23.2
5555
# via sphinx
5656
pycparser==2.21
5757
# via cffi
58-
pygments==2.16.1
58+
pygments==2.17.2
5959
# via sphinx
6060
pyopenssl==23.3.0
6161
# via -r docs-requirements.in
@@ -75,7 +75,7 @@ sphinx==6.1.3
7575
# sphinx-rtd-theme
7676
# sphinxcontrib-jquery
7777
# sphinxcontrib-trio
78-
sphinx-rtd-theme==1.3.0
78+
sphinx-rtd-theme==2.0.0
7979
# via -r docs-requirements.in
8080
sphinxcontrib-applehelp==1.0.4
8181
# via sphinx
@@ -97,9 +97,9 @@ sphinxcontrib-trio==1.1.2
9797
# via -r docs-requirements.in
9898
tomli==2.0.1
9999
# via towncrier
100-
towncrier==23.10.0
100+
towncrier==23.11.0
101101
# via -r docs-requirements.in
102-
urllib3==2.0.7
102+
urllib3==2.1.0
103103
# via requests
104104
zipp==3.17.0
105105
# via

src/trio/_core/_run.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,8 +1721,7 @@ def spawn_impl(
17211721
# Call the function and get the coroutine object, while giving helpful
17221722
# errors for common mistakes.
17231723
######
1724-
# TODO: resolve the type: ignore when implementing TypeVarTuple
1725-
coro = context.run(coroutine_or_error, async_fn, *args) # type: ignore[arg-type]
1724+
coro = context.run(coroutine_or_error, async_fn, *args)
17261725

17271726
if name is None:
17281727
name = async_fn

src/trio/_core/_tests/test_guest_mode.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,6 @@ async def trio_main() -> None:
660660
context = contextvars.copy_context()
661661
if TYPE_CHECKING:
662662
aiotrio_run(trio_main, host_uses_signal_set_wakeup_fd=True)
663-
# this type error is a bug in typeshed or mypy, as it's equivalent to the above line
664-
context.run(aiotrio_run, trio_main, host_uses_signal_set_wakeup_fd=True) # type: ignore[arg-type]
663+
context.run(aiotrio_run, trio_main, host_uses_signal_set_wakeup_fd=True)
665664

666665
assert record == {("asyncio", "asyncio"), ("trio", "trio")}

src/trio/_tests/test_exports.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,10 @@ def lookup_symbol(symbol: str) -> dict[str, str]:
422422
if (
423423
tool == "mypy"
424424
and enum.Enum in class_.__mro__
425-
and sys.version_info >= (3, 11)
425+
and sys.version_info >= (3, 12)
426426
):
427-
extra.difference_update({"__copy__", "__deepcopy__"})
427+
# Another attribute, in 3.12+ only.
428+
extra.remove("__signature__")
428429

429430
# TODO: this *should* be visible via `dir`!!
430431
if tool == "mypy" and class_ == trio.Nursery:

src/trio/_tests/test_threads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ def get_tid_then_reenter() -> int:
917917
nonlocal tid
918918
tid = threading.get_ident()
919919
# The nesting of wrapper functions loses the return value of threading.get_ident
920-
return from_thread_run(to_thread_run_sync, threading.get_ident) # type: ignore[return-value]
920+
return from_thread_run(to_thread_run_sync, threading.get_ident) # type: ignore[no-any-return]
921921

922922
assert tid != await to_thread_run_sync(get_tid_then_reenter)
923923

src/trio/_tests/test_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ async def async_gen(_: object) -> Any: # pragma: no cover
160160

161161

162162
def test_generic_function() -> None:
163-
@generic_function
164-
def test_func(arg: T) -> T:
163+
@generic_function # Decorated function contains "Any".
164+
def test_func(arg: T) -> T: # type: ignore[misc]
165165
"""Look, a docstring!"""
166166
return arg
167167

test-requirements.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,23 @@ codespell==2.2.6
2828
# via -r test-requirements.in
2929
coverage==7.3.2
3030
# via -r test-requirements.in
31-
cryptography==41.0.5
31+
cryptography==41.0.7
3232
# via
3333
# -r test-requirements.in
3434
# pyopenssl
3535
# trustme
3636
# types-pyopenssl
3737
dill==0.3.7
3838
# via pylint
39-
exceptiongroup==1.1.3 ; python_version < "3.11"
39+
exceptiongroup==1.2.0 ; python_version < "3.11"
4040
# via
4141
# -r test-requirements.in
4242
# pytest
43-
idna==3.4
43+
idna==3.6
4444
# via
4545
# -r test-requirements.in
4646
# trustme
47-
importlib-metadata==6.8.0
47+
importlib-metadata==7.0.0
4848
# via build
4949
iniconfig==2.0.0
5050
# via pytest
@@ -54,7 +54,7 @@ jedi==0.19.1
5454
# via -r test-requirements.in
5555
mccabe==0.7.0
5656
# via pylint
57-
mypy==1.6.1 ; implementation_name == "cpython"
57+
mypy==1.7.1 ; implementation_name == "cpython"
5858
# via -r test-requirements.in
5959
mypy-extensions==1.0.0 ; implementation_name == "cpython"
6060
# via
@@ -76,7 +76,7 @@ pathspec==0.11.2
7676
# via black
7777
pip-tools==7.3.0
7878
# via -r test-requirements.in
79-
platformdirs==3.11.0
79+
platformdirs==4.1.0
8080
# via
8181
# black
8282
# pylint
@@ -90,11 +90,11 @@ pyopenssl==23.3.0
9090
# via -r test-requirements.in
9191
pyproject-hooks==1.0.0
9292
# via build
93-
pyright==1.1.334
93+
pyright==1.1.338
9494
# via -r test-requirements.in
9595
pytest==7.4.3
9696
# via -r test-requirements.in
97-
ruff==0.1.5
97+
ruff==0.1.7
9898
# via -r test-requirements.in
9999
sniffio==1.3.0
100100
# via -r test-requirements.in
@@ -109,15 +109,15 @@ tomli==2.0.1
109109
# pylint
110110
# pyproject-hooks
111111
# pytest
112-
tomlkit==0.12.2
112+
tomlkit==0.12.3
113113
# via pylint
114114
trustme==1.1.0
115115
# via -r test-requirements.in
116116
types-cffi==1.16.0.0 ; implementation_name == "cpython"
117117
# via -r test-requirements.in
118118
types-pyopenssl==23.3.0.0 ; implementation_name == "cpython"
119119
# via -r test-requirements.in
120-
types-setuptools==68.2.0.0
120+
types-setuptools==69.0.0.0
121121
# via types-cffi
122122
typing-extensions==4.8.0
123123
# via
@@ -126,7 +126,7 @@ typing-extensions==4.8.0
126126
# black
127127
# mypy
128128
# pylint
129-
wheel==0.41.3
129+
wheel==0.42.0
130130
# via pip-tools
131131
zipp==3.17.0
132132
# via importlib-metadata

0 commit comments

Comments
 (0)