skillfed

types-Flask-Cors

Typing stubs for Flask-Cors

types-flask-cors v6.0.3.20260712 926.3K downloads/30d#4,709 on PyPI37
Permissive license Apache-2.0 Active released

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-cors

uv

uv add types-flask-cors

poetry

poetry add types-flask-cors

Installing 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

Programming Language :: Python :: 3Typing :: Stubs Only

Tags

flask-cors type stubstype checking flask-corsmypy flask-cors annotationsflask-cors type hintsstatic type checking flaskpyright flask-corstype stub package
type-stubstype-checking

More Software Development packages