types-Flask-SQLAlchemy
Typing stubs for Flask-SQLAlchemy
What it is and what it does
This package provides PEP 561 type stub files for Flask-SQLAlchemy, allowing static type checkers to understand and validate the types used in Flask-SQLAlchemy code. It acts as a bridge between the Flask-SQLAlchemy library and tools like mypy, pyright, and pytype, enabling developers to catch type errors before runtime.
The stubs depend on types-SQLAlchemy for core SQLAlchemy type information. However, the package is now largely superseded: Flask-SQLAlchemy has included its own type annotations since version 3.0.1, making this stub package redundant for modern codebases. It remains useful only for projects still using older versions of Flask-SQLAlchemy that lack built-in typing support.
Use it for:
- Type-checking Flask-SQLAlchemy code with mypy when using Flask-SQLAlchemy versions prior to 3.0.1.
- Enabling IDE autocomplete and type hints for Flask-SQLAlchemy in editors like PyCharm when using older versions.
- Validating ORM queries and model definitions against type contracts in legacy projects.
- Integrating Flask-SQLAlchemy into a typed Python codebase that uses pyright or pytype for static analysis.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for Flask-SQLAlchemy to enable static type checking with mypy, pyright, pytype, and other PEP 561-compatible tools.
No, unless you are maintaining a legacy codebase using Flask-SQLAlchemy before version 3.0.1. For any modern Flask-SQLAlchemy project (3.0.1+), uninstall this package and rely on the library's built-in type annotations instead. The package has not been updated since May 2023 and will not receive updates for newer Flask-SQLAlchemy versions.
Install
types-flask-sqlalchemy on PyPI
pip
pip install types-flask-sqlalchemyuv
uv add types-flask-sqlalchemypoetry
poetry add types-flask-sqlalchemyInstalling types-Flask-SQLAlchemy
Before you install
Low friction to install as a wheel-only package with a single runtime dependency. Maintenance is active, though the package has not been updated since May 2023; note that Flask-SQLAlchemy 3.0.1+ includes its own type annotations, making this package redundant for newer versions.
License in practice
Apache-2.0 permissive license allows free use, modification, and distribution with minimal restrictions, suitable for both open-source and commercial projects.
Quickstart
pip install types-Flask-SQLAlchemy
# Then use with your type checker (e.g., mypy)
# mypy your_flask_sqlalchemy_code.py
Only useful if you are using Flask-SQLAlchemy versions prior to 3.0.1, which did not include built-in type annotations. Flask-SQLAlchemy 3.0.1+ should be used without this package.
Verify before relying
- Whether this package's type stubs remain accurate for Flask-SQLAlchemy versions since the last release in May 2023.
- Compatibility with the latest versions of mypy, pyright, and other type checkers that have evolved since the last update.
Package facts
| License | Apache-2.0 license (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — types-SQLAlchemy |
| Maintenance | actively maintained — 1,192 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 243,472/month — #8,793 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_Flask_SQLAlchemy-2.5.9.4-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-SQLAlchemyProvides PEP 561 type stubs for SQLAlchemy,…
permissive · top 15,000 on PyPI
types-FlaskProvides PEP 561 type stubs for Flask to enable…
permissive · top 5,000 on PyPI
types-appdirsProvides type stubs for the appdirs package to…
permissive · top 15,000 on PyPI
pylint-flask-sqlalchemyA Pylint plugin that suppresses false-positive…
copyleft · top 15,000 on PyPI
types-influxdb-clientProvides type stubs for influxdb-client,…
permissive · top 15,000 on PyPI
types-redisProvides type stubs for the redis package,…
permissive · top 1,000 on PyPI
types-typed-astProvides type stubs for the typed-ast package,…
permissive · top 15,000 on PyPI
types-chardetProvides type stubs for character encoding…
permissive · top 5,000 on PyPI
types-filelockProvides type stubs for the filelock package to…
permissive · top 15,000 on PyPI
types-humanfriendlyProvides PEP 561 type stubs for the…
permissive · top 15,000 on PyPI