skillfed

types-qrcode

Typing stubs for qrcode

types-qrcode v8.2.0.20260518 532.3K downloads/30d#6,148 on PyPI37
Permissive license Apache-2.0 Active released

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-qrcode

uv

uv add types-qrcode

poetry

poetry add types-qrcode

Installing 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

Programming Language :: Python :: 3Typing :: Stubs Only

Tags

type stubs qrcodeqrcode type hintsmypy qrcode annotationspyright qrcode typesstatic type checking qrcodeqrcode typing supporttype checking qr codes
type-stubsstatic-analysis

More Software Development packages