Skip to content

Commit 46cb8df

Browse files
committed
gh-151396: Document socket.AddressFamily and socket.SocketKind
1 parent d63c994 commit 46cb8df

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

Doc/library/socket.rst

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,17 @@ Exceptions
364364
Constants
365365
^^^^^^^^^
366366

367-
The AF_* and SOCK_* constants are now :class:`AddressFamily` and
368-
:class:`SocketKind` :class:`.IntEnum` collections.
367+
.. class:: AddressFamily
369368

370-
.. versionadded:: 3.4
369+
:class:`enum.IntEnum` collection of AF_* constants.
370+
371+
.. versionadded:: 3.4
372+
373+
.. class:: SocketKind
374+
375+
:class:`enum.IntEnum` collection of SOCK_* constants.
376+
377+
.. versionadded:: 3.4
371378

372379
.. data:: AF_UNIX
373380
AF_INET

0 commit comments

Comments
 (0)