types-Pillow
Typing stubs for Pillow
Decision gist · record as of 2026-08-14
Yes, if you are using Pillow 10.2.* and want static type checking. Install it alongside your type checker. However, if you are already on Pillow 10.3.0 or later, uninstall this package—Pillow now provides its own type annotations and this stub becomes redundant. No security vulnerabilities are known.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.8.
- Only useful if you are running a static type checker; does not affect runtime.
- Low install friction with no runtime dependencies.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 is permissive and places no restrictions on use, modification, or distribution in your own projects.
last release 2024-08-22 (722 days) · last repo commit 2026-08-14 · 5,108 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,193,698 downloads/mo, #2,365 on PyPI
Alternatives
Verify before relying
pip install types-Pillow
# Use with your type checker on code that imports Pillow
# Type checker will now understand Pillow's API- Whether type coverage is complete for all Pillow 10.2.* APIs or if some areas remain untyped.
- Compatibility with Pillow versions outside the 10.2.* range that this stub targets.
What it is and what it does
types-Pillow is a PEP 561 type stub package that provides type annotations for Pillow 10.2.*, allowing static type checkers to understand and validate code that uses Pillow's image processing functions. It has no runtime dependencies and is installed alongside your type checker to improve code quality during development.
The stubs are maintained in the typeshed repository and are tested against mypy 1.11.1, pyright 1.1.377, and pytype 2024.4.11. However, this package is now superseded: Pillow itself has included native type annotations since version 10.3.0, so you should uninstall types-Pillow if you upgrade to Pillow 10.3.0 or later.
Use it for
- Enable type checkers to validate image processing code that imports Pillow without runtime overhead.
- Catch type errors in Pillow API calls during development before they reach production.
- Integrate Pillow type checking into a CI/CD pipeline using a static type checker.
- Use in an IDE to get inline type hints and autocomplete for Pillow functions.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are using Pillow 10.2.* and want static type checking.
Install it alongside your type checker. However, if you are already on Pillow 10.3.0 or later, uninstall this package—Pillow now provides its own type annotations and this stub becomes redundant. No security vulnerabilities are known.
Install
types-pillow on PyPI
Before you install
Low install friction with no runtime dependencies. Actively maintained and tested with current type checker versions. Note: Pillow itself includes type annotations since version 10.3.0, making this package redundant for newer Pillow versions.
Requires Python >=3.8. Only useful if you are running a static type checker; does not affect runtime.
License in practice
Apache-2.0 is permissive and places no restrictions on use, modification, or distribution in your own projects.
Quickstart
pip install types-Pillow
# Use with your type checker on code that imports Pillow
# Type checker will now understand Pillow's API
Verify before relying
- Whether type coverage is complete for all Pillow 10.2.* APIs or if some areas remain untyped.
- Compatibility with Pillow versions outside the 10.2.* range that this stub targets.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 722 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 4,193,698 / month, #2,365 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_Pillow-10.2.0.20240822-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pillow type stubs”
- types-PillowProvides type stubs for Pillow, enabling static type checkers to…
- types-fpdf2Provides type stubs for the fpdf2 PDF generation library, enabling…
- types-assertpyProvides type stubs enabling static type checkers like mypy and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also docutils-stubs · pandas-stubs · types-beautifulsoup4 · types-pyOpenSSL · types-tzlocal · types-chardet · types-python-slugify · types-emoji · scipy-stubs · pillow-avif-plugin