Skip to content

Correct way to add stubs for umqtt.simple when using rp2 port? #821

Answered by Josverl
HendrikThePendric asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Hendrik, you are the first to report this , but I have been expecting this question, though I do not yet have a scalable solution for it.

I build the stub packages based on the frozen modules to be an exact match to the firmware. The PICO2_W standard firmware does not have the does not But the downside of that is that mpremote mip installed modules do not show up as mpremote mip is oblivious to type-stubs, and prefers the .mpy version to save on space.

I have considered creating separate stub packages for each individual module in stdlib-stubs, but that are more than a few ...
for now I see two short term options:

  1. PICO_W stubs + manual copy
  • pip install -U micropython-rp2-rpi_pico2_w…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@HendrikThePendric
Comment options

@HendrikThePendric
Comment options

@HendrikThePendric
Comment options

@Josverl
Comment options

@HendrikThePendric
Comment options

Answer selected by HendrikThePendric
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation enhancement New feature or request mip stubs for modules installed with mip
2 participants