https://github.com/python/cpython/commit/6d8ea31e11e2cacc2b19696d7e6f38de4d4e32da commit: 6d8ea31e11e2cacc2b19696d7e6f38de4d4e32da branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: kumaraditya303 <[email protected]> date: 2026-05-23T13:54:14+05:30 summary:
[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 <[email protected]> files: M Lib/asyncio/coroutines.py diff --git a/Lib/asyncio/coroutines.py b/Lib/asyncio/coroutines.py index a51319cb72a6a9b..6727065bbe323ff 100644 --- a/Lib/asyncio/coroutines.py +++ b/Lib/asyncio/coroutines.py @@ -18,8 +18,8 @@ def _is_debug_mode(): 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", _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
