MicroPython Stubs Playground #19193
Josverl
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
|
Very impressive. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I built a small web app to demonstrate something I think is still underused in MicroPython: static type checking with stubs — without any setup.
Try it now: https://josverl.github.io/stubs_playground/
What it does:
Everything runs fully client-side (Pyright in a Web Worker), so there is no install and no server involved.
Why I made this:
I would really appreciate feedback, ideas, or if you would like to reuse parts of this in other editors or tools.
and may I ask ; If you find this useful, please consider starring the repository just to let me know.
Red squiggles:
When (not if) you find a bug in the stubs, as in "code with red squiggle that actually runs perfectly fine", please report do it so I can de-squiggle it.
This is now just a matter of clicking the "Report issue" button in the UI, which will pre-fill a bug report with the relevant code snippet and diagnostics.
If you package the MicroPython-stubs in your tools, link to the Stubs Playground and ask your users to report it.
That is a huge help in improving the stubs for everyone.
Beta Was this translation helpful? Give feedback.
All reactions