Typehints missing classes (ADC, PWM, and probably more)
See original GitHub issueHi,
I recently started playing with ESP32 and MicroPython. This plugins looks like a great idea to make things easier however there are some missing modules for ESP8266 and ESP32.
So I did some reading on how this plugin works and found all type hints to be updated 2 years ago, which made me wonder whether they are maintained manually or generated from MicroPython code.
I came across this tool https://github.com/Josverl/micropython-stubber which helps to create pyi files directly on the device itself.
I’m still not sure how to use the stubber, however my idea is to use it to generate stubs and contribute them to this project or to typeshed
to keep the type hinting up to date with less effort.
@vlasovskikh What do you think about this idea? Would you be willing to give me a hand to make this happen?
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (2 by maintainers)
Top GitHub Comments
I’m creating high quality typesheds/stubs including documentation as well as types, see https://github.com/hlovatt/PyBoardTypeshed and then hopefully they will all be included in the Micropython plugin (many of the existing typesheds/stubs in Micropython come from this project). Give me a few weeks and I should have done the complete stack for a PyBoard at least 😃.
I can upload the files here on Github if you want. There is nothing special to talk about it,i just want to make you guys to make the plugin better, i cant do it. Just want to use the plugin and pycharm to have some fun with my esp32.
Have some ESP-01 laying around, will check later if its the 1mb version or just the 512k one (so i can flash MicroPython). So we have some files for the ESP8266 too.
Edit:
installed latest micropython on my ESP-01, worked for me. Created a git with all the files the script gave me so far (for the ESP32 and the ESP8266).
if u want me to do more, i can try to make it better, cause there is no doc, its just the skeleton.
greetings