Skip to main content

MicroPython stubs

Project description

micropython-rp2-pico_w-stubs

This is a stub-only package for MicroPython. It is intended to be installed in a projects virtual environment to allow static type checkers and intellisense features to be used while writing Micropython code.

The version of this package is alligned the the version of the MicroPython firmware.

  • Major, Minor and Patch levels are alligned to the same version as the firmware.
  • The post release level is used to publish new releases of the stubs.

For Micropython 1.17 the stubs are published as 1.17.post1 ... 1.17.post2
for Micropython 1.18 the stubs are published as 1.18.post1 ... 1.18.post2

To install the latest stubs:
pip install -I micropython-<port>-stubs where port is the port of the MicroPython firmware.

To install the stubs for an older version, such as MicroPython 1.17:
pip install micropython-stm32-stubs==1.17.* which will install the last post release of the stubs for MicroPython 1.17.

As the creation of the stubs, and merging of the different types is still going though improvements, the stub packages are marked as Beta. To upgrade stubs to the latest stubs for a specific version use pip install micropython-stm32-stubs==1.17.* --upgrade

If you have suggestions or find any issues with the stubs, please report them in the MicroPython-stubs Discussions

For an overview of Micropython Stubs please see: https://micropython-stubs.readthedocs.io/en/main/

Included stubs:

  • Merged stubs from stubs/micropython-v1_20_0-rp2-PICO_W-merged
  • Frozen stubs from stubs/micropython-v1_20_0-frozen/rp2/GENERIC
  • Core stubs from stubs/micropython-core
origin Family Port Board Version
Documentation micropython - - v1.20.0
Core micropython rp2 - v1.20.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page