types-reportlab
Typing stubs for reportlab
What it is and what it does
types-reportlab is a type stub package that provides static type information for the reportlab PDF generation library. It allows developers to use type checkers like mypy and pyright to validate code that calls reportlab functions, catching type errors before runtime without needing to install reportlab itself during type checking.
The package is maintained as part of the typeshed project and tracks reportlab 4.5.1. It has no runtime dependencies—it exists purely to supply type annotations. Installation is straightforward, and the package is actively maintained with recent releases. It requires Python 3.10 or later.
Use it for:
- Enable mypy or pyright to type-check code that generates PDF reports using reportlab
- Catch type errors in reportlab API calls during development without runtime execution
- Provide IDE autocomplete and type hints for reportlab methods in editors that support type stubs
- Validate reportlab usage in CI/CD pipelines using static analysis before deployment
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type hints for the reportlab PDF generation library, enabling static type checking of code that uses reportlab without installing the full library.
Yes, if you use reportlab and want static type checking. It has no runtime cost, low install friction, and is actively maintained. Install it alongside your type checker configuration. Not needed if you don't use type checking or don't use reportlab.
Install
types-reportlab on PyPI
pip
pip install types-reportlabuv
uv add types-reportlabpoetry
poetry add types-reportlabInstalling types-reportlab
Before you install
Low friction install with no runtime dependencies. Actively maintained as part of typeshed, with recent releases and no known vulnerabilities.
License in practice
Apache-2.0 permissive license allows free use, modification, and distribution with minimal restrictions.
Quickstart
pip install types-reportlab
# In your code with a type checker:
from reportlab.pdfgen import canvas
def create_pdf(filename: str) -> None:
c = canvas.Canvas(filename)
c.drawString(0, 0, "Hello World")
c.save()
Requires Python 3.10 or later. Type checker (mypy, pyright, or similar) must be configured separately.
Verify before relying
- Whether these stubs provide complete coverage of reportlab 4.5.1's public API surface
- Compatibility with reportlab versions other than 4.5.1
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 786,681/month — #5,063 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_reportlab-4.5.1.20260807-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-openpyxlProvides type hints for openpyxl, enabling…
permissive · top 5,000 on PyPI
types-fpdf2Provides type stubs for the fpdf2 PDF…
permissive · top 15,000 on PyPI
scipy-stubsProvides type stubs for the entire SciPy…
permissive · top 5,000 on PyPI
types-yt-dlpProvides type hints for yt-dlp, enabling static…
permissive · top 15,000 on PyPI
types-docutilsProvides type hints for the docutils library,…
permissive · top 5,000 on PyPI
types-networkxProvides type stubs for networkx to enable…
permissive · top 5,000 on PyPI
types-grpcioProvides type stubs for the grpcio package,…
permissive · top 5,000 on PyPI
types-geopandasProvides type annotations for the geopandas…
permissive · top 15,000 on PyPI
types-braintreeProvides type hints for the braintree payment…
permissive · top 15,000 on PyPI
types-PygmentsProvides type hints for the Pygments syntax…
permissive · top 5,000 on PyPI