types-qrcode
Typing stubs for qrcode
What it is and what it does
types-qrcode is a type stub package that provides type annotations for the qrcode library. Type stubs are metadata files that tell static type checkers like mypy and pyright what types are used in a library, allowing developers to catch type errors in their own code before runtime. This package is maintained as part of typeshed, the central repository of type information for Python packages.
The stubs are tested against mypy 2.1.0 and pyright 1.1.409 and aim to provide accurate annotations for qrcode version 8.2.*. Installing this package alongside qrcode enables your IDE and type checker to understand the qrcode API and flag type mismatches in your code.
Use it for:
- Enable mypy or pyright to type-check code that imports and uses qrcode
- Get IDE autocomplete and type hints when working with qrcode in a type-aware editor
- Catch type errors in QR code generation workflows before running tests
- Integrate qrcode into a codebase with strict type-checking enabled in CI/CD
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for the qrcode package, enabling static type checkers like mypy and pyright to validate code that uses qrcode.
Yes, if you use qrcode and want static type checking. Install it alongside qrcode to enable type checkers to validate your code. It has low friction, no vulnerabilities, and is actively maintained. Only necessary if you're already using a type checker like mypy or pyright.
Install
types-qrcode on PyPI
pip
pip install types-qrcodeuv
uv add types-qrcodepoetry
poetry add types-qrcodeInstalling types-qrcode
Before you install
Low install friction with a single runtime dependency on Pillow. The package is actively maintained as part of the typeshed project, with recent releases and no known vulnerabilities.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in both open-source and proprietary projects with minimal restrictions.
Quickstart
pip install types-qrcode
import qrcode
qr = qrcode.QRCode()
qr.add_data('example')
qr.make()
Requires Python 3.10 or later.
Verify before relying
- Whether these stubs remain synchronized with qrcode versions beyond 8.2.*
- Coverage completeness for all public qrcode APIs
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — Pillow |
| Maintenance | actively maintained — 88 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 532,315/month — #6,148 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_qrcode-8.2.0.20260518-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-polibProvides type stubs for the polib package,…
permissive · top 15,000 on PyPI
types-MarkdownProvides type stubs for the Markdown package,…
permissive · top 5,000 on PyPI
types-pexpectProvides type stubs for pexpect, enabling type…
permissive · top 5,000 on PyPI
types-html5libProvides type hints for the html5lib HTML…
permissive · top 5,000 on PyPI
types-ldap3Provides type stubs for the ldap3 package,…
permissive · top 15,000 on PyPI
types-cffiProvides type stubs for the cffi package,…
permissive · top 5,000 on PyPI
types-channelsProvides type stubs for the channels package,…
permissive · top 15,000 on PyPI
types-protobufProvides type stubs for the protobuf package,…
permissive · top 1,000 on PyPI
types-WTFormsProvides type stubs for WTForms, enabling type…
permissive · top 15,000 on PyPI
types-zxcvbnProvides type hints for the zxcvbn password…
permissive · top 15,000 on PyPI