mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
[cffi] dlopen(None) works when platform != win32 (#10042)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user