From a34da859660cdad9ab6cd427093a6cde9df09565 Mon Sep 17 00:00:00 2001 From: Francesc Elies Date: Thu, 23 Mar 2023 12:21:16 +0100 Subject: [PATCH] [cffi] cast source can be an int too (#9930) [cffi] cast source can be an int too Co-authored-by: Francesc Elies --- stubs/cffi/cffi/api.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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