Closed m-col closed 3 years ago
Getting a weird mypy error:
pywayland/utils.py:83: error: Name 'ffi.CData' is not defined
I can access this on my machine. The ffi_build.py script is run during the mypy check, right?
Getting a weird mypy error:
pywayland/utils.py:83: error: Name 'ffi.CData' is not defined
I can access this on my machine. The ffi_build.py script is run during the mypy check, right?
I think all of the _ffi
types are hand-annotated in pywayland/_ffi.pyi
, and there I had written Cdata
rather than CData
. It might be that I had done the capitalization incorrectly and that is causing the problems. Does it work if you change the pyi
file?
I added a commit to change Cdata to CData everywhere but the mypy complaint still persists oddly. Any ideas?
This adds functions in
pywayland.utils
that mirror thewl_container_of
andwl_list_for_each
macros in wayland-util.h.