Skip to content

Commit cbc3aee

Browse files
committed
Add 3.14 deprecations
1 parent cdf3e53 commit cbc3aee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/@tests/test_cases/asyncio/check_coroutines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
from typing_extensions import assert_type
1010

1111

12-
# asyncio.iscoroutinefunction is deprecated, expecting a warning.
1312
def test_iscoroutinefunction_asyncio(
1413
x: Callable[[str, int], Coroutine[str, int, bytes]],
1514
y: Callable[[str, int], Awaitable[bytes]],
1615
z: Callable[[str, int], str | Awaitable[bytes]],
1716
xx: object,
1817
) -> None:
18+
# asyncio.iscoroutinefunction is deprecated >= 3.11, expecting a warning.
1919
if sys.version_info >= (3, 11):
2020
if iscoroutinefunction(x): # pyright: ignore
2121
assert_type(x, Callable[[str, int], Coroutine[str, int, bytes]])

0 commit comments

Comments
 (0)