mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 04:52:23 +08:00
ssl, sysconfig: fix issues with defaults (#9507)
- ssl._create_unverified_context allows None since 3.10:2875c603b2 (diff-f6439be9c66350dde4c35dbeea0352c96cc970ba12b0478f6ae36f10725bd8c5)- sysconfig.is_python_build ignores its argument since 3.11:067597522a(was backported into 3.11)
This commit is contained in:
@@ -55,7 +55,6 @@ unittest.case.TestCase.__init_subclass__
|
||||
# but in 3.10+ calling the function without the default argument is in fact deprecated,
|
||||
# so it's better to ignore stubtest
|
||||
ssl.SSLContext.__new__
|
||||
ssl._create_unverified_context
|
||||
|
||||
# SpooledTemporaryFile implements IO except these methods before Python 3.11
|
||||
# See also https://github.com/python/typeshed/pull/2452#issuecomment-420657918
|
||||
|
||||
@@ -51,7 +51,6 @@ unittest.case.TestCase.__init_subclass__
|
||||
# but in 3.10+ calling the function without the default argument is in fact deprecated,
|
||||
# so it's better to ignore stubtest
|
||||
ssl.SSLContext.__new__
|
||||
ssl._create_unverified_context
|
||||
|
||||
# ==========
|
||||
# Related to positional-only arguments
|
||||
@@ -128,12 +127,6 @@ ast.ImportFrom.level # None on the class, but never None on instances
|
||||
contextlib.AbstractAsyncContextManager.__class_getitem__
|
||||
contextlib.AbstractContextManager.__class_getitem__
|
||||
|
||||
# The argument to is_python_build() is deprecated since Python 3.11 and
|
||||
# has a default value of None to check for its existence and warn if it's
|
||||
# supplied. None is not supposed to be passed by user code and therefore
|
||||
# not included in the stubs.
|
||||
sysconfig.is_python_build
|
||||
|
||||
# Super-special typing primitives
|
||||
typing._SpecialForm.__mro_entries__
|
||||
typing._TypedDict.__delitem__
|
||||
|
||||
Reference in New Issue
Block a user