Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stubs/cffi/cffi/api.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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 | int | float) -> CData: ...
Comment thread
aochagavia marked this conversation as resolved.
Outdated
def string(self, cdata: CData, maxlen: int = -1) -> bytes | str: ...
def unpack(self, cdata: CData, length: int) -> bytes | str | list[Any]: ...
@overload
Expand Down