types-Flask-Cors
Typing stubs for Flask-Cors
What it is and what it does
This is a type stub package that provides type annotations for Flask-Cors, allowing static type checkers like mypy and pyright to understand and validate code that uses the Flask-Cors library. Type stubs are separate packages that define the types and signatures of another library's public API, enabling type checking without modifying the original package.
The package is maintained as part of the typeshed project and targets Flask-Cors version 6.0.3. It has been tested with mypy 2.2.0 and pyright 1.1.411. However, the description notes that Flask-Cors 6.0.4 and later versions include their own type annotations, making this stub package redundant for users on those newer versions.
Use it for:
- Enable mypy or pyright to type-check Flask-Cors usage in a codebase using Flask-Cors 6.0.3.
- Catch type errors in CORS configuration and decorator usage before runtime.
- Improve IDE autocomplete and inline documentation for Flask-Cors APIs during development.
- Maintain type safety in a fully type-annotated Flask application that uses Flask-Cors.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for Flask-Cors to enable static type checking of Flask-Cors code with mypy, pyright, and other type checkers.
Yes, but with a significant caveat: install this only if you are using Flask-Cors version 6.0.3 or earlier and need type checking support. If your project uses Flask-Cors 6.0.4 or later, uninstall this package as Flask-Cors now includes its own type annotations. For 6.0.3 users, it is worth installing if you use mypy or pyright for static type checking.
Install
types-flask-cors on PyPI
pip
pip install types-flask-corsuv
uv add types-flask-corspoetry
poetry add types-flask-corsInstalling types-Flask-Cors
Before you install
Low install friction with a single runtime dependency on Flask. Actively maintained as part of the typeshed project, with recent releases and no known vulnerabilities.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in most projects without significant restrictions.
Quickstart
pip install types-Flask-Cors
# Then use with your type checker (e.g., mypy or pyright)
# in your Flask-Cors code for static type checking
Requires Python 3.10 or later. Note: Flask-Cors 6.0.4+ includes its own type annotations, making this package unnecessary for newer versions.
Verify before relying
- Whether this stub package is still necessary if Flask-Cors has already been updated to 6.0.4 or later in your project.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — Flask |
| Maintenance | actively maintained — 33 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 926,326/month — #4,709 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_flask_cors-6.0.3.20260712-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
types-MarkdownProvides type stubs for the Markdown package,…
permissive · top 5,000 on PyPI
types-requestsProvides type annotations for the requests…
permissive · top 1,000 on PyPI
types-decoratorProvides type stubs for the `decorator`…
permissive · top 5,000 on PyPI
types-auth0-pythonProvides type stubs for auth0-python 4.10.x,…
permissive · top 15,000 on PyPI
types-Flask-MigrateProvides type hints for Flask-Migrate, enabling…
permissive · top 15,000 on PyPI
types-pyflakesProvides type stubs for the pyflakes static…
permissive · top 15,000 on PyPI
types-boltonsProvides type stubs for the boltons library,…
permissive · top 15,000 on PyPI
types-mypy-extensionsProvides type stubs for mypy-extensions,…
permissive · top 15,000 on PyPI
types-oauthlibProvides type stubs for the oauthlib package,…
permissive · top 5,000 on PyPI
types-smorestProvides type stubs for flask-smorest, enabling…
copyleft · top 5,000 on PyPI