Skip to content

Commit 4454346

Browse files
committed
Fix CI
1 parent d397b6d commit 4454346

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

tests/test_future/test_future_container/test_future_decorator.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import asyncio
2-
1+
import anyio
32
import pytest
43

54
from returns.future import Future, future
@@ -9,7 +8,7 @@
98
@future
109
async def _coro(arg: int) -> float:
1110
assert isinstance(arg, int)
12-
await asyncio.sleep(0)
11+
await anyio.sleep(0)
1312
return arg / 2
1413

1514

tests/test_future/test_future_result/test_future_result_decorator.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import asyncio
2-
1+
import anyio
32
import pytest
43

54
from returns.future import FutureResult, future_safe
@@ -9,21 +8,21 @@
98
@future_safe
109
async def _coro(arg: int) -> float:
1110
assert isinstance(arg, int)
12-
await asyncio.sleep(0)
11+
await anyio.sleep(0)
1312
return 1 / arg
1413

1514

1615
@future_safe(exceptions=(ZeroDivisionError,))
1716
async def _coro_two(arg: int) -> float:
1817
assert isinstance(arg, int)
19-
await asyncio.sleep(0)
18+
await anyio.sleep(0)
2019
return 1 / arg
2120

2221

2322
@future_safe((ZeroDivisionError,))
2423
async def _coro_three(arg: int | str) -> float:
2524
assert isinstance(arg, int)
26-
await asyncio.sleep(0)
25+
await anyio.sleep(0)
2726
return 1 / arg
2827

2928

typesafety/test_primitives/test_tracing/test_collect_traces.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
main: |
55
from returns.primitives.tracing import collect_traces
66
7-
reveal_type(collect_traces) # N: Revealed type is "Overload(def () -> typing.ContextManager[None], def [_FunctionType <: def (*Any, **Any) -> Any] (function: _FunctionType`-1) -> _FunctionType`-1)"
7+
reveal_type(collect_traces) # N: Revealed type is "Overload(def () -> contextlib.AbstractContextManager[None, Union[builtins.bool, None]], def [_FunctionType <: def (*Any, **Any) -> Any] (function: _FunctionType`-1) -> _FunctionType`-1)"
88
99
- case: collect_traces_context_manager_return_type_two
1010
skip: sys.version_info[:2] >= (3, 13)
1111
disable_cache: false
1212
main: |
1313
from returns.primitives.tracing import collect_traces
1414
15-
with reveal_type(collect_traces()): # N: Revealed type is "typing.ContextManager[None]"
15+
with reveal_type(collect_traces()): # N: Revealed type is "contextlib.AbstractContextManager[None, Union[builtins.bool, None]]"
1616
pass
1717
1818
- case: collect_traces_decorated_function_return_type

0 commit comments

Comments
 (0)