_cffi_backend.pyi FFI.__init__'s bytes
#13447
Labels
stubs: false positive
Type checkers report false errors
bytes
#13447
Hi!
About this stub:
https://github.com/python/typeshed/blob/c193cd2a36839c8e6336f350397f51ce52fedd5e/stubs/cffi/_cffi_backend.pyi#L128C1-L138C19
all
str
in this__init__
method should bebytes
. Because that's how it is when cffi is used in out-of-line mode (i.e compiled). AndPyBytes_AS_STRING
is called on even arguments https://github.com/python-cffi/cffi/blob/25172b84cf51cf58241f074ccd1efd9c7648cb43/src/c/cdlopen.c#L191The text was updated successfully, but these errors were encountered: