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
Describe the bug
The stub generation step that creates lvgl.pyi does not include many typedefs at the top that are referenced later in the file, causing it to not be interpreted by the IDE.
Details
I had been using the stubs provided in this thread on the LVGL forums, but noticed that a few typedefs appeared to not match the actual compiled binary – understandable given that the thread is almost a year old at this point.
In looking to acquire new stubs, I noticed that the build command generates them for me (nice!). However, when I ported the generated lvgl.pyi file into the typings/ folder of my local unix micropython project, most of the typings couldn't be loaded. When I inspected the file, I saw a lot (hundreds) of warnings like Undefined name style_prop_t. It seemed that classes defined later in the file were referencing typedefs that didn't exist.
Comparing with the lvgl.pyi provided in the thread, I noticed that it included a section of typedefs at the top that began:
flag_t=intrb_color_t=intthread_prio_t=int
[...]
This appears to be missing from the lvgl.pyi that was generated during my build.
Describe the bug
The stub generation step that creates
lvgl.pyi
does not include many typedefs at the top that are referenced later in the file, causing it to not be interpreted by the IDE.Details
I had been using the stubs provided in this thread on the LVGL forums, but noticed that a few typedefs appeared to not match the actual compiled binary – understandable given that the thread is almost a year old at this point.
In looking to acquire new stubs, I noticed that the build command generates them for me (nice!). However, when I ported the generated
lvgl.pyi
file into thetypings/
folder of my local unix micropython project, most of the typings couldn't be loaded. When I inspected the file, I saw a lot (hundreds) of warnings likeUndefined name style_prop_t
. It seemed that classes defined later in the file were referencing typedefs that didn't exist.Comparing with the
lvgl.pyi
provided in the thread, I noticed that it included a section of typedefs at the top that began:This appears to be missing from the
lvgl.pyi
that was generated during my build.Build Command
OS: macOS 15.3.1
CPU: Apple M3 Pro
The text was updated successfully, but these errors were encountered: