[Python-checkins] gh-105993: Add possible `None` return type to `asyncio.EventLoop.start_tls` docs (#105995)

kumaraditya303 webhook-mailer at python.org
Wed Jun 28 06:38:18 EDT 2023


https://github.com/python/cpython/commit/6b52a581c151914e59c8c367a03bc7309713a73b
commit: 6b52a581c151914e59c8c367a03bc7309713a73b
branch: main
author: Sam Bull <git at sambull.org>
committer: kumaraditya303 <59607654+kumaraditya303 at users.noreply.github.com>
date: 2023-06-28T16:08:15+05:30
summary:

gh-105993: Add possible `None` return type to `asyncio.EventLoop.start_tls` docs (#105995)

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

diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
index 8d0022cc66daa..38f2e2f510c17 100644
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -895,6 +895,9 @@ TLS Upgrade
    object only because the coder caches *protocol*-side data and sporadically
    exchanges extra TLS session packets with *transport*.
 
+   In some situations (e.g. when the passed transport is already closing) this
+   may return ``None``.
+
    Parameters:
 
    * *transport* and *protocol* instances that methods like



More information about the Python-checkins mailing list