-
-
Notifications
You must be signed in to change notification settings - Fork 24
Integrate or Merge parameter and return annotations #762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @Gobot1234, |
I think it was fairly manual because the generated ones weren't super correct. They were somewhat tested on an ardiuno nano ble but I never got round to testing everything. |
Saying all this I don't even remember if these stubs are correct for micropython they were for another microcontroller version of python IIRC |
Thanks for the quick response, would be helpful if you can recall what flavor of (Micro)python that was. The included docs sure look like micropython to me. |
Ah just remembered might have been circuit python. I remember this being a pretty big headache, I'll double check |
With the reference-stubs and the improved build of micropython_stdlib the stdlib/os and stdlib/sys modules now have the needed MicroPython methods. ref : Josverl/micropython-stubs#762 Josverl/micropython-stubs#775 Josverl/micropython-stubs#770 Signed-off-by: Jos Verlinde <[email protected]>
There are a few other initiatives that have focus on this topic for MicroPython
With the new stubber capabilities to merge @Overloads it would be possible to merge the better type info into the docstubs
There are quite a lot (60+) of incompatible / overlapping overloads that need adjustment to bring value
workaround is to use
"typeCheckingMode": "basic",
micropython-stdlib-stubs
@hlovatt, I think I have found a way to merge our efforts with a goal to bring the combined results to the MicroPython project. Thanks for all the work you have done.
Also See:
JetBrains/intellij-micropython#336
The text was updated successfully, but these errors were encountered: