[Python-checkins] Fix missing coroutine declaration in the asyncio documentation. (GH-5964)

Miss Islington (bot) webhook-mailer at python.org
Sat Mar 3 16:23:11 EST 2018


https://github.com/python/cpython/commit/0f7cf7eb8a2c9a1766780ebf225a2f4c0640788e
commit: 0f7cf7eb8a2c9a1766780ebf225a2f4c0640788e
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-03-03T13:22:49-08:00
summary:

Fix missing coroutine declaration in the asyncio documentation. (GH-5964)

(cherry picked from commit 13cfd57dcf58485d6242fd8118c6ea4b10e29aab)

Co-authored-by: Joongi Kim <me at daybreaker.info>

files:
M Doc/library/asyncio-task.rst

diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index 71dbe06c899f..485e1b843d08 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -682,7 +682,7 @@ Task functions
 
    This function is a :ref:`coroutine <coroutine>`.
 
-.. function:: shield(arg, \*, loop=None)
+.. coroutinefunction:: shield(arg, \*, loop=None)
 
    Wait for a future, shielding it from cancellation.
 



More information about the Python-checkins mailing list