From 4ce28b015a1a047ad140e5595667ff7b37e070ac Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 7 Dec 2021 16:27:19 +0000 Subject: [PATCH] Allowlists: mark `Pickler.memo` as wontfix, note that `pkg.ImpLoader` is deprecated (#6536) --- tests/stubtest_allowlists/py3_common.txt | 26 +++++++++++++----------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/tests/stubtest_allowlists/py3_common.txt b/tests/stubtest_allowlists/py3_common.txt index 4150991c0..ff143515a 100644 --- a/tests/stubtest_allowlists/py3_common.txt +++ b/tests/stubtest_allowlists/py3_common.txt @@ -248,6 +248,8 @@ builtins.reveal_type builtins.OSError.characters_written collections.abc.* # Types are re-exported from _collections_abc, so errors should be fixed there distutils.command.check.SilentReporter # only defined if docutils in installed +pickle.Pickler.memo # undocumented implementation detail, has different type in C/Python implementations +pickle.Unpickler.memo # undocumented implementation detail, has different type in C/Python implementations pydoc.Helper.symbol # Loop variable in class https://github.com/python/typeshed/issues/6401#issuecomment-981178522 pydoc.Helper.symbols_ # Loop variable in class https://github.com/python/typeshed/issues/6401#issuecomment-981178522 pydoc.Helper.topic # Loop variable in class https://github.com/python/typeshed/issues/6401#issuecomment-981178522 @@ -491,6 +493,18 @@ distutils.unixccompiler.UnixCCompiler.xcode_stub_lib_extension distutils.unixccompiler.UnixCCompiler.xcode_stub_lib_format distutils.util.grok_environment_error +# Missing from pkgutil.ImpLoader (deprecated since 3.3, can add if someone needs it) +pkgutil.ImpImporter.find_module +pkgutil.ImpImporter.iter_modules +pkgutil.ImpLoader.code +pkgutil.ImpLoader.get_code +pkgutil.ImpLoader.get_data +pkgutil.ImpLoader.get_filename +pkgutil.ImpLoader.get_source +pkgutil.ImpLoader.is_package +pkgutil.ImpLoader.load_module +pkgutil.ImpLoader.source + # ========== # Exists at runtime, but missing from stubs # ========== @@ -624,21 +638,9 @@ multiprocessing.synchronize.Semaphore.get_value (os|posix).uname_result.n_fields (os|posix).uname_result.n_sequence_fields (os|posix).uname_result.n_unnamed_fields -pickle.Pickler.memo -pickle.Unpickler.memo pipes.Template.makepipeline pipes.Template.open_r pipes.Template.open_w -pkgutil.ImpImporter.find_module -pkgutil.ImpImporter.iter_modules -pkgutil.ImpLoader.code -pkgutil.ImpLoader.get_code -pkgutil.ImpLoader.get_data -pkgutil.ImpLoader.get_filename -pkgutil.ImpLoader.get_source -pkgutil.ImpLoader.is_package -pkgutil.ImpLoader.load_module -pkgutil.ImpLoader.source profile.Profile.dispatch profile.Profile.fake_code profile.Profile.fake_frame