From 5a1a69a472e98506d23f80ccc2518210047c881f Mon Sep 17 00:00:00 2001 From: "zainnadeem(RedOpsCell)" Date: Tue, 7 Jul 2026 22:04:23 +0500 Subject: [PATCH] gh-151396: Document socket enum classes --- Doc/library/socket.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 836aa91bb0885b..38f4d1f72184c2 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -369,6 +369,18 @@ The AF_* and SOCK_* constants are now :class:`AddressFamily` and .. versionadded:: 3.4 +.. class:: AddressFamily + + An :class:`.IntEnum` collection whose members are the ``AF_*`` address + family constants. This class can be used in type annotations and + documentation cross-references. + +.. class:: SocketKind + + An :class:`.IntEnum` collection whose members are the ``SOCK_*`` socket + type constants. This class can be used in type annotations and + documentation cross-references. + .. data:: AF_UNIX AF_INET AF_INET6