Skip to content

Commit 9e719a9

Browse files
committed
Move SocketType after the socket class
Per review, document SocketType after the socket class rather than before it.
1 parent a6103c4 commit 9e719a9

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Doc/library/socket.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,13 +1532,6 @@ The :mod:`!socket` module also offers various network-related services:
15321532
Socket Objects
15331533
--------------
15341534

1535-
.. class:: SocketType
1536-
1537-
The base class of the :class:`~socket.socket` type, re-exported from
1538-
:mod:`!_socket`. An instance check such as
1539-
``isinstance(socket(...), SocketType)`` is true, but ``SocketType`` is not
1540-
the same as ``type(socket(...))``, which is :class:`~socket.socket` itself.
1541-
15421535
.. class:: socket
15431536
:noindex:
15441537

@@ -2179,6 +2172,13 @@ Socket Objects
21792172
The socket protocol.
21802173

21812174

2175+
.. class:: SocketType
2176+
2177+
The base class of the :class:`~socket.socket` type, re-exported from
2178+
:mod:`!_socket`. An instance check such as
2179+
``isinstance(socket(...), SocketType)`` is true, but ``SocketType`` is not
2180+
the same as ``type(socket(...))``, which is :class:`~socket.socket` itself.
2181+
21822182

21832183
.. _socket-timeouts:
21842184

0 commit comments

Comments
 (0)