[cffi] dlopen(None) works when platform != win32 (#10042)

This commit is contained in:
ankm20
2023-04-13 02:28:21 -07:00
committed by GitHub
parent 308a36bf5c
commit 084f555793

View File

@@ -25,7 +25,12 @@ class FFI:
def __init__(self, backend: types.ModuleType | None = None) -> None: ...
def cdef(self, csource: str, override: bool = False, packed: bool = False, pack: int | None = None) -> None: ...
def embedding_api(self, csource: str, packed: bool = False, pack: bool | int | None = None) -> None: ...
def dlopen(self, name: str, flags: int = 0) -> _cffi_backend.Lib: ...
if sys.platform == "win32":
def dlopen(self, name: str, flags: int = ...) -> _cffi_backend.Lib: ...
else:
def dlopen(self, name: str | None, flags: int = ...) -> _cffi_backend.Lib: ...
def dlclose(self, lib: _cffi_backend.Lib) -> None: ...
def typeof(self, cdecl: str | CData | types.BuiltinFunctionType | types.FunctionType) -> CType: ...
def sizeof(self, cdecl: str | CData) -> int: ...