You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where cffi-stubs/api.pyi has the right signature and _cffi_backend-stubs/__init__.pyi has the wrong one: def string(self, cdata: CData, maxlen: int) -> bytes | str: ... What is going on?
Activity
senyai commentedon Feb 14, 2023
After installing
python -m pip install types-cffi --user(1.15.1.15) I got this file structure in site-packages:where
cffi-stubs/api.pyihas the right signature and_cffi_backend-stubs/__init__.pyihas the wrong one:def string(self, cdata: CData, maxlen: int) -> bytes | str: ...What is going on?srittau commentedon Feb 15, 2023
This looks to be a bug in
stubs/cffi/_cffi_backend.pyi. PR welcome!