add _ssl module (#11155)

Really all I needed for fixing the inheritance was _ssl._SSLContext.
But then I needed all the other stuff in _ssl, and if I was doing that
I wanted to do a thorough job of it.

Motivation was originally related to https://github.com/python/typeshed/issues/3968 ,
but we're well beyond that now, really.

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Stephen Morton
2024-10-01 20:10:51 -07:00
committed by GitHub
parent c43894568f
commit 4f37d8fff8
7 changed files with 342 additions and 63 deletions

View File

@@ -413,7 +413,6 @@ queue.SimpleQueue.__init__
imaplib.IMAP4_SSL.ssl
ssl.PROTOCOL_SSLv2
ssl.PROTOCOL_SSLv3
ssl.RAND_egd
pickle._Pickler\..* # Best effort typing for undocumented internals
pickle._Unpickler\..* # Best effort typing for undocumented internals

View File

@@ -246,6 +246,10 @@ unittest\.test\..+
pstats.SortKey.__new__
tkinter.EventType.__new__
# Items that depend on the existence and flags of SSL
ssl.RAND_egd
_ssl.RAND_egd
# Incorrectly star import.
ctypes._endian.DEFAULT_MODE
ctypes._endian.RTLD_GLOBAL

View File

@@ -229,6 +229,10 @@ types.SimpleNamespace.__init__ # class doesn't accept positional arguments but
pstats.SortKey.__new__
tkinter.EventType.__new__
# Items that depend on the existence and flags of SSL
ssl.RAND_egd
_ssl.RAND_egd
# Incorrectly star import.
ctypes._endian.DEFAULT_MODE
ctypes._endian.RTLD_GLOBAL