Fix some CAPI annotations (#13081)

This commit is contained in:
Stephen Morton
2024-11-23 16:00:49 -08:00
committed by GitHub
parent 7ab6620c0f
commit 9614cc2d88
5 changed files with 8 additions and 7 deletions

View File

@@ -58,7 +58,6 @@ multiprocessing.synchronize.SemLock.release
numbers.Number.__hash__ # typeshed marks this as abstract but code just sets this as None
optparse.Values.__getattr__ # Some attributes are set in __init__ using setattr
pickle.Pickler.reducer_override # implemented in C pickler
pyexpat.expat_CAPI
select.poll # Depends on configuration
selectors.DevpollSelector # Depends on configuration
shutil.rmtree # stubtest doesn't like that we have this as an instance of a callback protocol instead of a function
@@ -77,7 +76,6 @@ typing.type_check_only # typing decorator that is not available at runtime
unittest.mock.patch # It's a complicated overload and I haven't been able to figure out why stubtest doesn't like it
weakref.WeakKeyDictionary.update
weakref.WeakValueDictionary.update
xml.parsers.expat.expat_CAPI
# ==========
# TODO: Modules that exist at runtime, but are missing from stubs

View File

@@ -110,7 +110,6 @@ tkinter.Tk.__init__
# Exists at runtime, but missing from stubs
_?contextvars.ContextVar.__class_getitem__
datetime.datetime_CAPI
dummy_threading.ExceptHookArgs
dummy_threading.Lock
dummy_threading.RLock