Unpin stubtest from Python 3.10.8 and 3.11.0 (#9368)

This commit is contained in:
Alex Waygood
2022-12-20 20:31:13 +00:00
committed by GitHub
parent e6a04141ab
commit 352f496d69
6 changed files with 21 additions and 11 deletions

View File

@@ -13,12 +13,6 @@ builtins.float.__setformat__ # Internal method for CPython test suite
builtins.property.__set_name__ # Doesn't actually exist
contextlib.AbstractAsyncContextManager.__class_getitem__
contextlib.AbstractContextManager.__class_getitem__
# Missing from distutils module (deprecated, to be removed in 3.12)
distutils.core.DEBUG
distutils.core.USAGE
distutils.core.extension_keywords
distutils.core.gen_usage
distutils.core.setup_keywords
fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve
gettext.install
gettext.translation
@@ -33,7 +27,6 @@ pickle.Pickler.reducer_override # implemented in C pickler
# platform.uname_result's processor field is now dynamically made to exist
platform.uname_result.__match_args__
platform.uname_result.__new__
platform.uname_result._fields
platform.uname_result.processor
sys.UnraisableHookArgs # Not exported from sys
tkinter.Tk.split
@@ -54,6 +47,10 @@ typing._TypedDict.values
weakref.ProxyType.__reversed__ # Doesn't really exist
weakref.WeakValueDictionary.update
# Runtime has *args, **kwargs, but will error if any are supplied
unittest.TestCase.__init_subclass__
unittest.case.TestCase.__init_subclass__
# stubtest complains that in 3.10 the default argument is inconsistent with the annotation,
# but in 3.10+ calling the function without the default argument is in fact deprecated,
# so it's better to ignore stubtest

View File

@@ -16,6 +16,9 @@ argparse._MutuallyExclusiveGroup.add_mutually_exclusive_group
asynchat.__warningregistry__ # Removal planned for 3.12, can add if someone needs this
configparser.LegacyInterpolation.__init__
enum.Enum.__init__
# TODO: The stub for enum is nothing like the implementation
enum.auto.__init__
enum.auto.value
fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve
ftplib.FTP.trust_server_pasv_ipv4_address
ipaddress.IPv4Interface.hostmask
@@ -32,7 +35,6 @@ multiprocessing.spawn._main
# platform.uname_result's processor field is now dynamically made to exist
platform.uname_result.__match_args__
platform.uname_result.__new__
platform.uname_result._fields
platform.uname_result.processor
queue.SimpleQueue.__init__
sys.UnraisableHookArgs # Not exported from sys
@@ -41,6 +43,10 @@ typing.NewType.__call__
typing.NewType.__mro_entries__
weakref.WeakValueDictionary.update
# Runtime has *args, **kwargs, but will error if any are supplied
unittest.TestCase.__init_subclass__
unittest.case.TestCase.__init_subclass__
# stubtest complains that in 3.10 the default argument is inconsistent with the annotation,
# but in 3.10+ calling the function without the default argument is in fact deprecated,
# so it's better to ignore stubtest