]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-122858: Deprecate `asyncio.iscoroutinefunction` (#122875)
authorWulian <1055917385@qq.com>
Sun, 11 Aug 2024 16:35:51 +0000 (00:35 +0800)
committerGitHub <noreply@github.com>
Sun, 11 Aug 2024 16:35:51 +0000 (16:35 +0000)
commitbc9d92c67933917b474e61905451c6408c68e71d
tree3cbe6bee6f8d7029f26b7bdfdb5c57873088e073
parent3aaed083a3f5eb7e490495c460b3dc1ce7451ce8
gh-122858: Deprecate `asyncio.iscoroutinefunction` (#122875)

Deprecate `asyncio.iscoroutinefunction` in favor of `inspect.iscoroutinefunction`.

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Doc/library/unittest.mock.rst
Doc/whatsnew/3.14.rst
Lib/asyncio/base_events.py
Lib/asyncio/coroutines.py
Lib/asyncio/unix_events.py
Lib/test/test_asyncio/test_pep492.py
Lib/test/test_asyncio/test_tasks.py
Lib/test/test_unittest/testmock/testmagicmethods.py
Lib/unittest/mock.py
Misc/NEWS.d/next/Library/2024-08-10-10-21-44.gh-issue-122858.ZC1rJD.rst [new file with mode: 0644]