]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-94912: Added marker for non-standard coroutine function detection (#99247)
authorCarlton Gibson <carlton@noumenal.es>
Sun, 18 Dec 2022 19:13:24 +0000 (20:13 +0100)
committerGitHub <noreply@github.com>
Sun, 18 Dec 2022 19:13:24 +0000 (11:13 -0800)
commit532aa4e4e019812d0388920768ede7c04232ebe1
treebac6a6c3f467bc6a7d7ac1210fc5f9929cc2742a
parent1cf3d78c92eb07dc09d15cc2e773b0b1b9436825
gh-94912: Added marker for non-standard coroutine function detection (#99247)

This introduces a new decorator `@inspect.markcoroutinefunction`,
which, applied to a sync function, makes it appear async to
`inspect.iscoroutinefunction()`.
Doc/library/inspect.rst
Doc/whatsnew/3.12.rst
Lib/inspect.py
Lib/test/test_inspect.py
Misc/NEWS.d/next/Library/2022-11-17-10-02-18.gh-issue-94912.G2aa-E.rst [new file with mode: 0644]