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
lib/lvgl: Add Python stubs package structure for IDE support.
Create a proper Python package structure for LVGL type stubs:
- Create stubs/pyproject.toml with setuptools-scm versioning
- Add stubs/lvgl-stubs/ package directory with __init__.py and py.typed
- Update gen_mpy.py to output stubs to package directory by default
- Add .gitignore to exclude generated .pyi files but include package structure
- Update README.md with comprehensive IDE support documentation
The stubs package can be installed with 'pip install -e stubs/' for
development or built into a wheel for distribution. Generated stub files
include complete type definitions for all LVGL widgets, functions, and
enums with extracted documentation.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
For better development experience with IDEs (VS Code, PyCharm, etc.), this repository includes Python type stubs that provide autocompletion, type checking, and documentation hints.
513
+
514
+
### Installation
515
+
516
+
The type stubs are automatically generated during the build process and packaged for easy installation:
Once installed, your IDE (VS Code, PyCharm, etc.) will automatically use these stubs for:
26
+
27
+
- Autocompletion
28
+
- Type checking with mypy
29
+
- Function signatures and documentation
30
+
- Parameter hints
31
+
32
+
## Building
33
+
34
+
The stubs are automatically generated from the LVGL C headers when running the MicroPython bindings build process. The generated `lvgl.pyi` file will be placed in the `lvgl-stubs/` directory.
35
+
36
+
## Requirements
37
+
38
+
- Python 3.8+
39
+
- Generated from LVGL C headers with Doxygen-style documentation
0 commit comments