skillfed

types-reportlab

Typing stubs for reportlab

types-reportlab v4.5.1.20260807 786.7K downloads/30d#5,063 on PyPI37
Permissive license Apache-2.0 Active released

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

uv

uv add types-reportlab

poetry

poetry add types-reportlab

Installing 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

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

Tags

type stubs for reportlabreportlab type hintsstatic type checking reportlabmypy reportlab annotationsreportlab typing support
type-stubstype-checking

More Software Development packages