]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] gh-105993: Add possible `None` return type to `asyncio.EventLoop.start_tls...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 5 Jul 2023 11:21:19 +0000 (04:21 -0700)
committerGitHub <noreply@github.com>
Wed, 5 Jul 2023 11:21:19 +0000 (13:21 +0200)
(cherry picked from commit 6b52a581c151914e59c8c367a03bc7309713a73b)

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

index f68fa013d1b8e1fa81dc71d40c2dc0f3e6dad9a9..9e59b5b0dc20248b9ec3872fdfe2dd62b1b3343c 100644 (file)
@@ -830,6 +830,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