From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 23 May 2026 08:24:14 +0000 (+0200) Subject: [3.14] gh-149694: Fix missing docstring on `asyncio.iscoroutinefunction` (GH-149696... X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=6d8ea31e11e2cacc2b19696d7e6f38de4d4e32da;p=thirdparty%2FPython%2Fcpython.git [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 6a6600569985e4006900bae16812f2d19c8ab97b) Co-authored-by: deadlovelll <128279579+deadlovelll@users.noreply.github.com> --- diff --git a/Lib/asyncio/coroutines.py b/Lib/asyncio/coroutines.py index a51319cb72a6..6727065bbe32 100644 --- a/Lib/asyncio/coroutines.py +++ b/Lib/asyncio/coroutines.py @@ -18,8 +18,8 @@ _is_coroutine = object() def iscoroutinefunction(func): - import warnings """Return True if func is a decorated coroutine function.""" + import warnings warnings._deprecated("asyncio.iscoroutinefunction", f"{warnings._DEPRECATED_MSG}; " "use inspect.iscoroutinefunction() instead",