cffi: fix FFI.string signature (#10012)

Keeps _cffi_backend.pyi consistent with api.pyi
This commit is contained in:
ankm20
2023-04-05 17:34:28 -07:00
committed by GitHub
parent 60939b00af
commit e7a0f71790

View File

@@ -203,7 +203,7 @@ class FFI:
def offsetof(self, __cdecl: str | CType, __field_or_index: str | int, *__fields_or_indexes: str | int) -> int: ...
def release(self, __cdata: CData) -> None: ...
def sizeof(self, __cdecl: str | CType | CData) -> int: ...
def string(self, cdata: CData, maxlen: int) -> bytes | str: ...
def string(self, cdata: CData, maxlen: int = -1) -> bytes | str: ...
def typeof(self, cdecl: str | CData) -> CType: ...
def unpack(self, cdata: CData, length: int) -> bytes | str | list[Any]: ...