--- id: types-reportlab version: "4.5.1.20260807" license: Apache-2.0 license_treatment: permissive maintenance: active --- # types-reportlab — Typing stubs for reportlab License: permissive · Maintenance: active · Downloads: 786.7K/mo ## 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 above — 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 pip install types-reportlab uv add types-reportlab 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_current - Install friction: low - Maintenance: active - Downloads: 786.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags type stubs for reportlab, reportlab type hints, static type checking reportlab, mypy reportlab annotations, reportlab typing support, type-stubs, type-checking [View on SkillFed](https://skillfed.io/packages/types-reportlab) · [View on PyPI](https://pypi.org/project/types-reportlab/)