Skip to main content

A typeshed for checking CircuitPython code

Project description

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.

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).

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

circuitpython_typeshed-0.1.0.tar.gz (445.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

circuitpython_typeshed-0.1.0-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file circuitpython_typeshed-0.1.0.tar.gz.

File metadata

File hashes

Hashes for circuitpython_typeshed-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ab26c830d9894ce87c768e58e91e6e752783fca938187eba0a90ad010b85d8c5
MD5 b4f0d0da3bf1b2e6ed132e56e4b7876a
BLAKE2b-256 9da3f007f0bcc4b20cbc6bd8ccec833fe4dba2833d40ec6871ddbba86694c377

See more details on using hashes here.

File details

Details for the file circuitpython_typeshed-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for circuitpython_typeshed-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd3673af76d67314d0d3e8e47a737687378d1ce8a3f750cf4e4fe0884a4d3bf2
MD5 e81fdca49a91a7d8f78cefd456e64fd2
BLAKE2b-256 a510364e0ddaf189c2619ace1af7016a63e2039dbce47a9e901380d451698a8b

See more details on using hashes here.

Supported by

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