diff --git a/.readthedocs.yml b/.readthedocs.yml index f282a39..2d12126 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -8,10 +8,13 @@ formats: build: os: ubuntu-22.04 tools: - python: "3" + python: "3.13" python: install: - requirements: ci/rtd-requirements.txt - method: pip path: . + +sphinx: + configuration: docs/source/conf.py diff --git a/ci/rtd-requirements.txt b/ci/rtd-requirements.txt index 35b284d..5c83826 100644 --- a/ci/rtd-requirements.txt +++ b/ci/rtd-requirements.txt @@ -1,4 +1,4 @@ # RTD is currently installing 1.5.3, which has a bug in :lineno-match: -sphinx >= 4.0, < 6.2 +sphinx >= 6.0 sphinx_rtd_theme sphinxcontrib-trio diff --git a/tests/type_tests.py b/tests/type_tests.py index c48b067..bb442de 100644 --- a/tests/type_tests.py +++ b/tests/type_tests.py @@ -117,8 +117,8 @@ def sync_capture_test() -> None: assert_type(capture(sync_one, 3.14), Union[Value[int], Error]) assert_type(capture(sync_one, param=3.14), Union[Value[int], Error]) assert_type(capture(sync_raises), Error) - capture(sync_one) # type: ignore[arg-type, call-arg] - capture(sync_none, 1, 2) # type: ignore[arg-type, call-arg] + capture(sync_one) # type: ignore[call-overload] + capture(sync_none, 1, 2) # type: ignore[call-overload] async def sync_gen_test() -> None: @@ -172,8 +172,8 @@ async def async_capture_test() -> None: await acapture(async_one, param=3.14), Union[Value[int], Error] ) assert_type(await acapture(async_raises), Error) - capture(async_one) # type: ignore[arg-type, call-arg] - capture(async_none, 1, 2) # type: ignore[arg-type, call-arg] + capture(async_one) # type: ignore[call-overload] + capture(async_none, 1, 2) # type: ignore[call-overload] async def async_gen_test() -> None: