Skip to main content

Pimoroni Pico MicroPython Stubs

This repository contains type stubs that help you write code for Pimoroni Pico MicroPython's many built-in modules.

Type stubs include details about the constants, functions, classes and methods available in each module, and what arguments they accept.

VSCode Setup

Required Extensions

You must install the VSCode Python extension and additionally Pylance to support type hints.

To install extensions, press Ctrl+Shift+P or Cmd+Shift+P and in the pop-up box type "Extensions" and select "Extensions: Install Extensions".

A search box should open on the left-hand side of your editor, find and install the following:

VSCode Settings

To open VSCode settings press Ctrl+Shift+P or Cmd+Shift+P and in the pop-up box type "Settings" and choose "Preferences: Open Workspace Settings (JSON)".

If the file is empty you can go right ahead and add the lines below:

{
    "python.languageServer": "Pylance",
    "python.analysis.typeCheckingMode": "basic",
    "python.analysis.diagnosticSeverityOverrides": {
        "reportMissingModuleSource": "none"
    },
    "python.analysis.typeshedPaths": [
        "./typings/",
    ],
}

MicroPython stubs

To get MicroPython type hints you'll need to install the following package into the ./typings directory of your project.

If the terminal is not open press Ctrl+Shift+P or Cmd+Shift+P and in the pop-up box type "Terminal" and select "Terminal: Create New Terminal (In Active Workspace)".

Finally in the terminal run the following command:

pip install pimoroni-pico-stubs --target ./typings --no-user

Metadata

Release files for north101-pimoroni-pico-stubs 1.23.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for north101-pimoroni-pico-stubs 1.23.0
File Size Uploaded
north101_pimoroni_pico_stubs-1.23.0.tar.gz 24.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for north101-pimoroni-pico-stubs 1.23.0
File Interpreter ABI Platform
north101_pimoroni_pico_stubs-1.23.0-py3-none-any.whl Python 3 none any Details

Total release size: 67.6 kB

Release files / north101_pimoroni_pico_stubs-1.23.0.tar.gz

Download URL north101_pimoroni_pico_stubs-1.23.0.tar.gz
Size 24.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c43fac2db944ecf80ff4dc6c6c297b6d9111852000db8ef9a42487c0846aafea
BLAKE2b-256 checksum
How to use checksums
0019b538e725891dc89dc4163387cdd0f94513e01761691ec9fb24973bdda669
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.5 Darwin/23.5.0

Release files / north101_pimoroni_pico_stubs-1.23.0-py3-none-any.whl

Download URL north101_pimoroni_pico_stubs-1.23.0-py3-none-any.whl
Size 43.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d82b746dafff818a645a55f30274434ba79deae8de343a4c936c67b69116a91
BLAKE2b-256 checksum
How to use checksums
d45d29424e576d5d51311350ce3ab4ffacf863132c6f253ea3b38ee4efef477c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.5 Darwin/23.5.0

Release history Release notifications | RSS feed

This release

1.23.0 This release

2 release files

1.22.0

2 release files

1.21.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page