Add type stubs for cffi (#8736)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Adrian Freund
2022-09-15 00:44:33 +02:00
committed by GitHub
parent 42c044eb67
commit 205901e2fd
20 changed files with 944 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
# technically exists on all OSs, but crashes on all but windows
cffi.(api.)?FFI.getwinerror
# added dynamically and not detected by stubtest
cffi.(api.)?FFI.CData
cffi.(api.)?FFI.CType
cffi.(api.)?FFI.buffer
# Exists at runtime, but missing from stubs
cffi.vengine_cpy.__warningregistry__
# Alias to io.StringIO, which has the same allowlist
cffi.recompiler.NativeIO.seek
cffi.recompiler.NativeIO.truncate
cffi.verifier.NativeIO.seek
cffi.verifier.NativeIO.truncate
# Unnecessary re-exports
cffi.cparser.COMMON_TYPES
cffi.verifier.__version_verifier_modules__