mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-12 02:42:29 +08:00
Add missing defaults to third-party stubs (#14617)
This commit is contained in:
@@ -29,7 +29,7 @@ class FFI:
|
||||
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 dlopen(self, name: str | None, flags: int = 0) -> _cffi_backend.Lib: ...
|
||||
|
||||
def dlclose(self, lib: _cffi_backend.Lib) -> None: ...
|
||||
def typeof(self, cdecl: str | CData | types.BuiltinFunctionType | types.FunctionType) -> CType: ...
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from collections.abc import Sequence
|
||||
|
||||
def merge_flags(cfg1: dict[str, list[str]], cfg2: dict[str, list[str]]) -> dict[str, list[str]]: ...
|
||||
def call(libname: str, flag: str, encoding: str = ...) -> str: ...
|
||||
def call(libname: str, flag: str, encoding: str = "utf-8") -> str: ...
|
||||
def flags_from_pkgconfig(libs: Sequence[str]) -> dict[str, list[str]]: ...
|
||||
|
||||
Reference in New Issue
Block a user