diff --git a/stubs/cffi/cffi/api.pyi b/stubs/cffi/cffi/api.pyi index cfb26ef92..78434ee0c 100644 --- a/stubs/cffi/cffi/api.pyi +++ b/stubs/cffi/cffi/api.pyi @@ -38,7 +38,7 @@ class FFI: free: Callable[[CData], Any] | None = ..., should_clear_after_alloc: bool = ..., ) -> _cffi_backend._Allocator: ... - def cast(self, cdecl: str | CType, source: CData) -> CData: ... + def cast(self, cdecl: str | CType, source: CData | int) -> CData: ... def string(self, cdata: CData, maxlen: int = ...) -> bytes | str: ... def unpack(self, cdata: CData, length: int) -> bytes | str | list[Any]: ... @overload