mirror of
https://github.com/python/cpython.git
synced 2026-06-18 15:42:21 +00:00
[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 6a66005699)
Co-authored-by: deadlovelll <128279579+deadlovelll@users.noreply.github.com>
This commit is contained in:
parent
0bd80a1d48
commit
6d8ea31e11
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue