Skip to content

Commit 6d8ea31

Browse files
[3.14] gh-149694: Fix missing docstring on asyncio.iscoroutinefunction (GH-149696) (#149736)
[3.15] gh-149694: Fix missing docstring on `asyncio.iscoroutinefunction` (GH-149696) (cherry picked from commit 6a66005) Co-authored-by: deadlovelll <128279579+deadlovelll@users.noreply.github.com>
1 parent 0bd80a1 commit 6d8ea31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/asyncio/coroutines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ def _is_debug_mode():
1818

1919

2020
def iscoroutinefunction(func):
21-
import warnings
2221
"""Return True if func is a decorated coroutine function."""
22+
import warnings
2323
warnings._deprecated("asyncio.iscoroutinefunction",
2424
f"{warnings._DEPRECATED_MSG}; "
2525
"use inspect.iscoroutinefunction() instead",

0 commit comments

Comments
 (0)