Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion ci/rtd-requirements.txt
Original file line number Diff line number Diff line change
@@ -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
8 changes: 4 additions & 4 deletions tests/type_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
Loading