]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-105993: Add possible `None` return type to `asyncio.EventLoop.start_tls...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 28 Jun 2023 11:06:25 +0000 (04:06 -0700)
committerGitHub <noreply@github.com>
Wed, 28 Jun 2023 11:06:25 +0000 (16:36 +0530)
gh-105993: Add possible `None` return type to `asyncio.EventLoop.start_tls` docs (GH-105995)
(cherry picked from commit 6b52a581c151914e59c8c367a03bc7309713a73b)

Co-authored-by: Sam Bull <git@sambull.org>
Doc/library/asyncio-eventloop.rst

index 3644c17c6b37c45f8788bc7c80d1eccff9a10534..d6aab2a5fce1b04566ffbb13cbd28d971c113e18 100644 (file)
@@ -878,6 +878,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