MicroPython Stubs: Enhance Your Development Experience¶
Overview:
Configuration:
- Configuring VSCode, Pylance or Pyright
- Pyright configuration using pyproject.toml
- Install the stubs from PyPi.
- vscode Configuration for Pylance.
- vscode: Ignore ‘could not be resolved from source’.
- vscode: Configure Pylance to read MicroPython stdlib stubs.
- VSCode: Sample workspace configuration file.
- pylance/pyright: Using pyproject.toml
- Most Relevant settings
- Pylance/Pyright Advanced configuration
- PyCharm Configuration
- MicroPico Configuration [Pylance]
- Type Checking with MyPy
- Linting with Ruff
- Pylint Configuration
- How to use the Micro:bit v2 stubs
- Configuration using pyproject.toml
Advanced:
- MicroPython’s
typing.mpymodule - Type check PIO code using the @rp2_asm decorator
- Detailed Installation Guide
- Micropython-Stubs
- Stub Locations
- DIY Stub file creation for MicroPython
- Run the mcu stubber
- Create a symbolic link
- Stub folder Naming Conventions.
- Installing directy from the repository
- Stub QA testing (Validation Snippets)