[issue44261] SocketType documentation misleading

Jelle Zijlstra report at bugs.python.org
Sat May 29 19:00:46 EDT 2021


Jelle Zijlstra <jelle.zijlstra at gmail.com> added the comment:

I propose to deprecate socket.SocketType. There's no reason to publicly expose _socket.socket separately from socket.socket, the only type that moat users should care about.

SocketType isn't needed for type checking; socket.socket is itself a class and can be used in type annotations.

----------
nosy: +Jelle Zijlstra

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44261>
_______________________________________


More information about the Python-bugs-list mailing list