--- id: types-flask-cors version: "6.0.3.20260712" license: Apache-2.0 license_treatment: permissive maintenance: active --- # types-Flask-Cors — Typing stubs for Flask-Cors License: permissive · Maintenance: active · Downloads: 926.3K/mo ## 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 above — 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 pip install types-flask-cors uv add types-flask-cors 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_current - Install friction: low - Maintenance: active - Downloads: 926.3K/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags flask-cors type stubs, type checking flask-cors, mypy flask-cors annotations, flask-cors type hints, static type checking flask, pyright flask-cors, type stub package, type-stubs, type-checking [View on SkillFed](https://skillfed.io/packages/types-flask-cors) · [View on PyPI](https://pypi.org/project/types-flask-cors/)