Skip to content

Commit f7e25b3

Browse files
committed
fix inspect tests
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
1 parent aa30a76 commit f7e25b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stdlib/@tests/test_cases/check_inspect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ def test_iscoroutinefunction_inspect(
1717
assert_type(x, Callable[[str, int], Coroutine[str, int, bytes]])
1818

1919
if inspect.iscoroutinefunction(y):
20-
assert_type(y, Callable[[str, int], CoroutineType[Any, Any, bytes]])
20+
assert_type(y, Callable[[str, int], Awaitable[bytes]])
2121

2222
if inspect.iscoroutinefunction(z):
23-
assert_type(z, Callable[[str, int], CoroutineType[Any, Any, Any]])
23+
assert_type(z, Callable[[str, int], str | Awaitable[bytes]])
2424

2525
if inspect.iscoroutinefunction(xx):
2626
assert_type(xx, Callable[..., CoroutineType[Any, Any, Any]])

0 commit comments

Comments
 (0)