mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 10:51:15 +08:00
cffi: fix FFI.string signature (#10012)
Keeps _cffi_backend.pyi consistent with api.pyi
This commit is contained in:
@@ -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]: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user