Skip to content

Commit c0b538b

Browse files
[3.11] pythongh-101786: Clarify docs that asyncio.Server.sockets is a socket-like TransportSocket (pythonGH-103877) (python#103890)
Clarify that asyncio.Server.sockets is a socket-like TransportSocket (cherry picked from commit 1c0a9c5) Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
1 parent 410c2ce commit c0b538b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/library/asyncio-eventloop.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ Server objects are created by :meth:`loop.create_server`,
15381538
:meth:`loop.create_unix_server`, :func:`start_server`,
15391539
and :func:`start_unix_server` functions.
15401540

1541-
Do not instantiate the class directly.
1541+
Do not instantiate the :class:`Server` class directly.
15421542

15431543
.. class:: Server
15441544

@@ -1629,7 +1629,8 @@ Do not instantiate the class directly.
16291629

16301630
.. attribute:: sockets
16311631

1632-
List of :class:`socket.socket` objects the server is listening on.
1632+
List of socket-like objects, ``asyncio.trsock.TransportSocket``, which
1633+
the server is listening on.
16331634

16341635
.. versionchanged:: 3.7
16351636
Prior to Python 3.7 ``Server.sockets`` used to return an

0 commit comments

Comments
 (0)