types-Flask
Typing stubs for Flask
Decision gist · record as of 2026-08-14
No for most users. If you are using Flask 2.0 or later, Flask includes native type annotations and you should not install this package. Only install types-Flask if you are maintaining Flask 1.x code and need type-checking support; otherwise, upgrade Flask and rely on its built-in stubs.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Flask 2.0 and later include native type annotations; installing types-Flask alongside Flask 2.0+ is redundant and should be avoided.
- Low install friction with three lightweight type-stub runtime dependencies.
- Maintenance is active with regular updates from the typeshed repository, though the latest release is from 2021-11-26.
License · maintenance · safety
Apache-2.0 license (permissive) — Licensed under Apache-2.0, a permissive open-source license that allows free use, modification, and distribution with minimal restrictions.
last release 2021-11-26 (1722 days) · last repo commit 2026-08-14 · 5,108 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,432,193 downloads/mo, #3,910 on PyPI
Alternatives
Verify before relying
pip install types-Flask
import flask
app = flask.Flask(__name__)- Whether this package is still actively maintained given the latest release date of 2021-11-26 and the note that Flask 2.0+ includes native stubs.
- Coverage and accuracy of type stubs relative to current Flask versions.
What it is and what it does
types-Flask is a PEP 561 type stub package that provides type information for the Flask web framework. It allows static type checkers like mypy and PyCharm to understand Flask's API and catch type errors in code that uses Flask. The package is sourced from the typeshed project and depends on three related type stub packages: types-Jinja2, types-Werkzeug, and types-click.
However, this package is largely superseded: Flask has included native type annotations since version 2.0, making types-Flask redundant for modern Flask installations. The package is maintained through typeshed but should only be installed if you are using Flask 1.x or need stubs for an older Flask version.
Use it for
- Type-checking Flask 1.x applications with mypy or similar tools when native stubs are unavailable.
- Enabling IDE autocomplete and type hints in editors like PyCharm for Flask 1.x projects.
- Validating Flask route handlers and request/response types in legacy codebases before upgrading.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No for most users.
If you are using Flask 2.0 or later, Flask includes native type annotations and you should not install this package. Only install types-Flask if you are maintaining Flask 1.x code and need type-checking support; otherwise, upgrade Flask and rely on its built-in stubs.
Install
types-flask on PyPI
Before you install
Low install friction with three lightweight type-stub runtime dependencies. Maintenance is active with regular updates from the typeshed repository, though the latest release is from 2021-11-26.
Flask 2.0 and later include native type annotations; installing types-Flask alongside Flask 2.0+ is redundant and should be avoided.
License in practice
Licensed under Apache-2.0, a permissive open-source license that allows free use, modification, and distribution with minimal restrictions.
Quickstart
pip install types-Flask
import flask
app = flask.Flask(__name__)
Verify before relying
- Whether this package is still actively maintained given the latest release date of 2021-11-26 and the note that Flask 2.0+ includes native stubs.
- Coverage and accuracy of type stubs relative to current Flask versions.
Package facts
| License | Apache-2.0 license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagestypes-Jinja2types-Werkzeugtypes-click |
| Maintenance | Actively maintained 1,722 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,432,193 / month, #3,910 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 LicenseTyping :: Typed |
Evidence: types_Flask-1.1.6-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 › “flask type stubs”
- types-FlaskProvides PEP 561 type stubs for Flask to enable static type checking…
- types-smorestProvides type stubs for flask-smorest, enabling static type checking…
- types-Flask-MigrateProvides type hints for Flask-Migrate, enabling type checkers like…
Give your agent the search over MCP, or paste the wish link into any chat.
More Quality Assurance packages
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
Ruff is a Python linter and code formatter written in Rust that combines linting, formatting, and code fixing into a single tool, replacing Flake8, Black, isort, and related utilities.
Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.
Black reformats Python source code to a consistent style by parsing entire files and rewriting them according to an opinionated, deterministic set of rules, eliminating manual formatting decisions.
pytest-xdist distributes pytest tests across multiple CPU cores or machines to speed up test execution, with the simplest usage being `pytest -n auto` to spawn workers equal to available CPUs.
Install it if your test suite takes long enough that parallelization would save meaningful time.
Validates AWS CloudFormation templates in YAML or JSON format against resource provider schemas and best practices, checking property values and configuration correctness.
Install it if you work with CloudFormation templates.
See also types-certifi · types-filelock · types-Jinja2 · types-Werkzeug · trio-typing · types-Flask-SQLAlchemy · types-pkg-resources · types-MarkupSafe · types-geoip2 · pymupdf-stubs