[cffi] Accept floats in cast (#15487)

This commit is contained in:
Adolfo Ochagavía
2026-03-06 05:57:19 -03:00
committed by GitHub
parent e108320b29
commit 07ffb67b92
+1 -1
View File
@@ -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