Skip to content

Commit 07ffb67

Browse files
authored
[cffi] Accept floats in cast (#15487)
1 parent e108320 commit 07ffb67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/cffi/cffi/api.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class FFI:
4343
free: Callable[[CData], Any] | None = None,
4444
should_clear_after_alloc: bool = True,
4545
) -> _cffi_backend._Allocator: ...
46-
def cast(self, cdecl: str | CType, source: CData | int) -> CData: ...
46+
def cast(self, cdecl: str | CType, source: CData | float) -> CData: ...
4747
def string(self, cdata: CData, maxlen: int = -1) -> bytes | str: ...
4848
def unpack(self, cdata: CData, length: int) -> bytes | str | list[Any]: ...
4949
@overload

0 commit comments

Comments
 (0)