types-Werkzeug
Typing stubs for Werkzeug
What it is and what it does
types-Werkzeug is a type stub package that bridges the gap between older versions of Werkzeug and modern type checkers. It provides type information for Werkzeug's public API, allowing tools like mypy, PyCharm, and pytype to perform static type checking on code that uses Werkzeug. The stubs are maintained as part of the typeshed project, a community repository of type definitions for popular Python packages.
However, this package has been superseded: Werkzeug itself has shipped with native type annotations since version 2.0, making types-Werkzeug redundant for any modern installation. The package has not been updated since November 2021, and the description explicitly recommends uninstalling it if you use Werkzeug 2.0 or later. It remains relevant only for legacy codebases still on Werkzeug 1.x.
Use it for:
- Type-checking legacy code that depends on Werkzeug 1.x with mypy or similar tools.
- Adding type safety to older Flask or Werkzeug-based projects without upgrading the framework.
- Verifying type correctness in CI/CD pipelines for applications locked to pre-2.0 Werkzeug versions.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides PEP 561 type stubs for Werkzeug, enabling type checkers like mypy and PyCharm to validate code using Werkzeug without runtime overhead.
No, unless you are constrained to Werkzeug 1.x. For any modern Werkzeug installation (2.0+), this package is unnecessary and should not be installed—Werkzeug's own type stubs are superior and kept in sync with releases. If you are on Werkzeug 1.x, it provides value, but upgrading Werkzeug is the better path forward.
Install
types-werkzeug on PyPI
pip
pip install types-werkzeuguv
uv add types-werkzeugpoetry
poetry add types-werkzeugInstalling types-Werkzeug
Before you install
Low install friction with no runtime dependencies. However, the package has not been updated since November 2021, and Werkzeug itself has included native type annotations since version 2.0—this stub package is now largely obsolete for modern Werkzeug installations.
License in practice
Licensed under Apache-2.0, a permissive license that allows free use, modification, and distribution with minimal restrictions.
Quickstart
pip install types-Werkzeug
# Then use with mypy or other type checkers on code that imports Werkzeug
mypy your_code.py
Only useful if you are using Werkzeug version 1.x or early 2.0 releases; Werkzeug 2.0+ includes its own type stubs, making this package redundant.
Verify before relying
- Whether this package remains compatible with current Werkzeug versions beyond 2.0.
- Whether type coverage is complete for all Werkzeug APIs or if gaps exist.
Package facts
| License | Apache-2.0 license (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 1,722 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,799,667/month — #3,545 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_Werkzeug-1.0.9-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
trio-typingProvides PEP 561 type stubs and typing…
permissive · top 5,000 on PyPI
types-clickProvides PEP 561 type stubs for the click…
permissive · top 5,000 on PyPI
types-cryptographyProvides PEP 561 type stubs for the…
permissive · top 5,000 on PyPI
types-FlaskProvides PEP 561 type stubs for Flask to enable…
permissive · top 5,000 on PyPI
types-Jinja2Provides PEP 561 type stubs for Jinja2,…
permissive · top 5,000 on PyPI
types-maxminddbProvides type stubs for the maxminddb package,…
permissive · top 15,000 on PyPI
types-tornadoProvides PEP 561 type stubs for tornado,…
permissive · top 15,000 on PyPI
types-MarkupSafeProvides type stubs for MarkupSafe, enabling…
permissive · top 5,000 on PyPI
types-attrsProvides PEP 561 type stubs for the attrs…
permissive · top 15,000 on PyPI
types-backportsProvides PEP 561 type stubs for the backports…
permissive · top 15,000 on PyPI