diff --git a/tests/stubtest_whitelists/darwin-py310.txt b/tests/stubtest_whitelists/darwin-py310.txt new file mode 100644 index 000000000..b60f46ca8 --- /dev/null +++ b/tests/stubtest_whitelists/darwin-py310.txt @@ -0,0 +1,2 @@ +_curses.color_pair +curses.color_pair diff --git a/tests/stubtest_whitelists/linux-py310.txt b/tests/stubtest_whitelists/linux-py310.txt index e69de29bb..b60f46ca8 100644 --- a/tests/stubtest_whitelists/linux-py310.txt +++ b/tests/stubtest_whitelists/linux-py310.txt @@ -0,0 +1,2 @@ +_curses.color_pair +curses.color_pair diff --git a/tests/stubtest_whitelists/py310.txt b/tests/stubtest_whitelists/py310.txt index aaf655a0e..b2a1cf820 100644 --- a/tests/stubtest_whitelists/py310.txt +++ b/tests/stubtest_whitelists/py310.txt @@ -13,7 +13,6 @@ _collections_abc.Generator.throw _collections_abc.ItemsView.__reversed__ _collections_abc.KeysView.__reversed__ _collections_abc.ValuesView.__reversed__ -_curses.color_pair _dummy_thread ast.Bytes.__new__ ast.Ellipsis.__new__ @@ -38,7 +37,6 @@ collections.abc.KeysView.__reversed__ collections.abc.ValuesView.__reversed__ contextlib.nullcontext # not a function at runtime contextvars.Context.__init__ # Default C __init__ signature is wrong -curses.color_pair dataclasses.field dummy_threading enum.Enum._generate_next_value_ @@ -61,8 +59,6 @@ logging.handlers.BaseRotatingHandler.__init__ logging.handlers.RotatingFileHandler.__init__ logging.handlers.TimedRotatingFileHandler.__init__ logging.handlers.WatchedFileHandler.__init__ -macpath # module removed in 3.8 -macurl2path # module removed in 3.7 multiprocessing.spawn._main os.getgrouplist os.sendfile @@ -153,7 +149,6 @@ pstats.SortKey.__new__ tkinter.EventType.__new__ # Rest of these errors are new in Python 3.10: -_bootlocale _markupbase.ParserBase.error asyncio.proactor_events._ProactorReadPipeTransport.__init__ builtins.aiter @@ -164,7 +159,6 @@ distutils.command.bdist_wininst fileinput.FileInput.__init__ fileinput.hook_compressed fileinput.input -formatter importlib.abc.ResourceReader.is_resource importlib.machinery.BuiltinImporter.create_module importlib.machinery.BuiltinImporter.exec_module @@ -177,7 +171,6 @@ logging.Formatter.__init__ logging.LoggerAdapter.__init__ logging.PercentStyle.__init__ logging.config.fileConfig -parser pathlib.Path.chmod pathlib.Path.stat pathlib.Path.write_text @@ -212,8 +205,6 @@ sqlite3.dbapi2.complete_statement ssl.SSLContext.__new__ ssl._create_unverified_context ssl.get_server_certificate -statistics.harmonic_mean -symbol tempfile.TemporaryDirectory.__init__ unicodedata.ucnhash_CAPI unittest.mock.create_autospec diff --git a/tests/stubtest_whitelists/py36.txt b/tests/stubtest_whitelists/py36.txt index 08b1c62f9..b4c0e2d2f 100644 --- a/tests/stubtest_whitelists/py36.txt +++ b/tests/stubtest_whitelists/py36.txt @@ -79,10 +79,3 @@ collections.Generator.gi_running collections.Generator.gi_yieldfrom collections.Mapping.get # Adding None to the Union messed up mypy collections.Sequence.index # Supporting None in end is not mandatory - -# The following methods were changed in point releases from Python 3.6 to 3.9 -# as part of a security fix. These excludes can be removed when the GitHub -# action workflow uses Python versions that include the fix (adding a -# separator argument). -urllib.parse.parse_qs -urllib.parse.parse_qsl diff --git a/tests/stubtest_whitelists/py37.txt b/tests/stubtest_whitelists/py37.txt index 50c5c0dbf..b2263686d 100644 --- a/tests/stubtest_whitelists/py37.txt +++ b/tests/stubtest_whitelists/py37.txt @@ -77,10 +77,3 @@ collections.Generator.gi_running collections.Generator.gi_yieldfrom collections.Mapping.get # Adding None to the Union messed up mypy collections.Sequence.index # Supporting None in end is not mandatory - -# The following methods were changed in point releases from Python 3.6 to 3.9 -# as part of a security fix. These excludes can be removed when the GitHub -# action workflow uses Python versions that include the fix (adding a -# separator argument). -urllib.parse.parse_qs -urllib.parse.parse_qsl diff --git a/tests/stubtest_whitelists/py38.txt b/tests/stubtest_whitelists/py38.txt index 03b7b55ac..20755f70f 100644 --- a/tests/stubtest_whitelists/py38.txt +++ b/tests/stubtest_whitelists/py38.txt @@ -47,15 +47,13 @@ ipaddress.IPv4Interface.hostmask ipaddress.IPv6Interface.hostmask ipaddress._BaseNetwork.broadcast_address ipaddress._BaseNetwork.hostmask -macpath # removed in 3.8 -macurl2path # removed in 3.7 multiprocessing.spawn._main pickle.Pickler.reducer_override # implemented in C pickler queue.SimpleQueue.__init__ # Default C __init__ signature is wrong +select.epoll.register random.Random.randrange # missing undocumented arg _int random.randrange # missing undocumented arg _int sched.Event.__doc__ # __slots__ is overridden -select.epoll.register ssl.PROTOCOL_SSLv3 # Depends on ssl compilation ssl.RAND_egd # Depends on openssl compilation sys.UnraisableHookArgs # Not exported from sys diff --git a/tests/stubtest_whitelists/py39.txt b/tests/stubtest_whitelists/py39.txt index 0e51ffcc5..af931af8d 100644 --- a/tests/stubtest_whitelists/py39.txt +++ b/tests/stubtest_whitelists/py39.txt @@ -60,8 +60,6 @@ logging.handlers.BaseRotatingHandler.__init__ logging.handlers.RotatingFileHandler.__init__ logging.handlers.TimedRotatingFileHandler.__init__ logging.handlers.WatchedFileHandler.__init__ -macpath # module removed in 3.8 -macurl2path # module removed in 3.7 multiprocessing.spawn._main os.getgrouplist os.sendfile @@ -71,8 +69,8 @@ platform.uname_result.__new__ platform.uname_result._fields platform.uname_result.processor queue.SimpleQueue.__init__ # Default C __init__ signature is wrong -sched.Event.__doc__ # __slots__ is overridden select.epoll.register +sched.Event.__doc__ # __slots__ is overridden smtplib.LMTP.__init__ ssl.PROTOCOL_SSLv3 # Depends on ssl compilation ssl.RAND_egd # Depends on openssl compilation diff --git a/tests/stubtest_whitelists/win32-py36.txt b/tests/stubtest_whitelists/win32-py36.txt index 0073db7e8..8a286dc49 100644 --- a/tests/stubtest_whitelists/win32-py36.txt +++ b/tests/stubtest_whitelists/win32-py36.txt @@ -4,6 +4,8 @@ # separator argument). cgi.FieldStorage.__init__ cgi.parse +urllib.parse.parse_qs +urllib.parse.parse_qsl hashlib.scrypt os.startfile diff --git a/tests/stubtest_whitelists/win32-py37.txt b/tests/stubtest_whitelists/win32-py37.txt index 10f396588..855f4d4be 100644 --- a/tests/stubtest_whitelists/win32-py37.txt +++ b/tests/stubtest_whitelists/win32-py37.txt @@ -5,5 +5,7 @@ cgi.FieldStorage.__init__ cgi.parse cgi.parse_multipart +urllib.parse.parse_qs +urllib.parse.parse_qsl os.startfile