Skip to content

Commit

Permalink
gh-101786: Clarify docs that asyncio.Server.sockets is a socket-like …
Browse files Browse the repository at this point in the history
…TransportSocket (#103877)

Clarify that asyncio.Server.sockets is a socket-like TransportSocket
  • Loading branch information
willingc authored Apr 26, 2023
1 parent 214e568 commit 1c0a9c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Doc/library/asyncio-eventloop.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ Server objects are created by :meth:`loop.create_server`,
:meth:`loop.create_unix_server`, :func:`start_server`,
and :func:`start_unix_server` functions.

Do not instantiate the class directly.
Do not instantiate the :class:`Server` class directly.

.. class:: Server

Expand Down Expand Up @@ -1662,7 +1662,8 @@ Do not instantiate the class directly.

.. attribute:: sockets

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

.. versionchanged:: 3.7
Prior to Python 3.7 ``Server.sockets`` used to return an
Expand Down

0 comments on commit 1c0a9c5

Please sign in to comment.