mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 12:35:49 +08:00
[cffi] Accept floats in cast (#15487)
This commit is contained in:
@@ -43,7 +43,7 @@ class FFI:
|
||||
free: Callable[[CData], Any] | None = None,
|
||||
should_clear_after_alloc: bool = True,
|
||||
) -> _cffi_backend._Allocator: ...
|
||||
def cast(self, cdecl: str | CType, source: CData | int) -> CData: ...
|
||||
def cast(self, cdecl: str | CType, source: CData | float) -> CData: ...
|
||||
def string(self, cdata: CData, maxlen: int = -1) -> bytes | str: ...
|
||||
def unpack(self, cdata: CData, length: int) -> bytes | str | list[Any]: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user