mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 19:28:50 +08:00
cffi: fix FFI.string signature (#10012)
Keeps _cffi_backend.pyi consistent with api.pyi
This commit is contained in:
1 parent
60939b00af
commit
e7a0f71790
1 file changed
+1
-1
@@ -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