micropython-typeshed
This package contains a custom typeshed suitable for type-checking or completing MicroPython code.
The goal has been to provide MicroPython specific stubs also for modules present in CPython's stdlib, which
some type-checkers (e.g. MyPy) may consider special.
For this reason, the stubs are arranged into typeshed layout (i.e. under stdlib and stubs folders).
This means, it doesn't suffice to install this package into a venv -- you also
need to set your type-checker's typeshed path to the installation directory of this package.
The stubs and typeshed helpers are compiled from the following sources
- https://pypi.org/project/micropython-rp2-rpi_pico2_w-stubs/
- https://pypi.org/project/micropython-esp32-stubs/
- https://pypi.org/project/micropython-stm32-pybv11-stubs/
- https://pypi.org/project/micropython-samd-stubs/
Installation
You can install this package into a venv (e.g. pip install micropython-typeshed) or into a plain directory
(e.g. python3 -m pip install micropython-typeshed --target typeshed --no-user).
Using with Pyright and basedpyright
You need to indicate the installed location via the -t (or --typeshedpath) option (e.g.
pyright -t .venv/lib/python3.10/site-packages my-code.py or pyright -t typeshed my-code.py).
Using with MyPy
You need to indicate the installed location via the --custom-typeshed-dir option (e.g. mypy --custom-typeshed-dir typeshed my-code.py).
Metadata
Release files for micropython-typeshed 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| micropython_typeshed-0.1.0.tar.gz | 262.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| micropython_typeshed-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 585.7 kB
Release files / micropython_typeshed-0.1.0.tar.gz
| Download URL | micropython_typeshed-0.1.0.tar.gz |
|---|---|
| Size | 262.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d91006d1150347229653e858e86e7c129f0bb0548e06dab5c9b28aaee88705cb
|
|
BLAKE2b-256 checksum How to use checksums |
db6e500500ea38909fed81881a6708858ed1ae0c5dadc83861ccbe10481b6053
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.4
|
Release files / micropython_typeshed-0.1.0-py3-none-any.whl
| Download URL | micropython_typeshed-0.1.0-py3-none-any.whl |
|---|---|
| Size | 323.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df93dd3f9ce214f339ee0a0f4515e2b097085ca8362e92873546de79179aee08
|
|
BLAKE2b-256 checksum How to use checksums |
9f9de61aa526d3f76b9e9ff3ca0fe33e1fd80f2382d92192a6553bb6e7dda447
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.4
|
Security for micropython-typeshed 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.