circuitpython-typeshed
This package contains a custom typeshed suitable for type-checking or completing CircuitPython code.
The goal has been to provide CircuitPython 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.
- Most stubs come from circuitpython-stubs, including the stubs present in the sdist of said package
but omitted from the wheel (
math,os,random,struct,ssl,time). - Typeshed helpers and some stdlib stubs come from micropython-stdlib-stubs.
- Remaining stdlib stubs come from micropython-rp2-stubs.
Installation
You can install this package into a venv (e.g. pip install circuitython-typeshed) or into a plain directory
(e.g. python3 -m pip install circuitpython-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 circuitpython-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 | |
|---|---|---|---|---|
| circuitpython_typeshed-0.1.0.tar.gz | 445.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| circuitpython_typeshed-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.6 MB
Release files / circuitpython_typeshed-0.1.0.tar.gz
| Download URL | circuitpython_typeshed-0.1.0.tar.gz |
|---|---|
| Size | 445.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab26c830d9894ce87c768e58e91e6e752783fca938187eba0a90ad010b85d8c5
|
|
BLAKE2b-256 checksum How to use checksums |
9da3f007f0bcc4b20cbc6bd8ccec833fe4dba2833d40ec6871ddbba86694c377
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.4
|
Release files / circuitpython_typeshed-0.1.0-py3-none-any.whl
| Download URL | circuitpython_typeshed-0.1.0-py3-none-any.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd3673af76d67314d0d3e8e47a737687378d1ce8a3f750cf4e4fe0884a4d3bf2
|
|
BLAKE2b-256 checksum How to use checksums |
a510364e0ddaf189c2619ace1af7016a63e2039dbce47a9e901380d451698a8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.4
|
Security for circuitpython-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.