Fix an unnecessary allowlist entry in ssl.pyi (#9776)

This commit is contained in:
Alex Waygood
2023-02-21 00:35:38 +00:00
committed by GitHub
parent 9163c71e47
commit 4d99b33f84
2 changed files with 5 additions and 3 deletions

View File

@@ -168,8 +168,7 @@ shutil.rmtree # stubtest doesn't like that we have this as an instance of a cal
socketserver.BaseServer.fileno # implemented in derived classes
socketserver.BaseServer.get_request # implemented in derived classes
socketserver.BaseServer.server_bind # implemented in derived classes
ssl.Purpose.__new__ # You cannot override __new__ in NamedTuple and runtime uses namedtuple.
ssl._ASN1Object.__new__ # You cannot override __new__ in NamedTuple and runtime uses namedtuple.
ssl.Purpose.__new__ # the multiple inheritance confuses mypy
(sys.get_int_max_str_digits)? # Added in a patch release, backported to all security branches, but has yet to find its way to all GitHub Actions images
sys.implementation # Actually SimpleNamespace but then you wouldn't have convenient attributes
(sys.set_int_max_str_digits)? # Added in a patch release, backported to all security branches, but has yet to find its way to all GitHub Actions images