raylib-python-cffi icon indicating copy to clipboard operation
raylib-python-cffi copied to clipboard

Add mypy support

Open Softianix opened this issue 1 year ago • 2 comments

Hello, great project, I love it :rocket:

I have one issue though: have you thought about adding mypy support? image

Most Python projects use mypy nowadays and it would be great to have this in this project as well to provide some type safety to the projects using this library, maybe we could generate stubs using https://mypy.readthedocs.io/en/stable/stubgen.html#stubgen and then create py.typed marker file?

What do you think?

Softianix avatar Jul 30 '24 10:07 Softianix

https://github.com/electronstudio/raylib-python-cffi/pull/135

electronstudio avatar Jul 30 '24 10:07 electronstudio

#135

Ok, thanks, so the answer is still no?

Have you thought about this already?

If we did enable type checking with the current fake type hints, how bad would it be? Do the examples pass type checking? If not, how much work would it be to make fake hints that are good enough for checking? https://github.com/electronstudio/raylib-python-cffi/pull/135#issuecomment-2256456742

Softianix avatar Jul 30 '24 10:07 Softianix

Should be working in 5.0.0.5

electronstudio avatar Nov 17 '24 03:11 electronstudio