This library provides static type checking stubs for Flask-Migrate, enabling tools like MyPy to verify type correctness in applications using Flask-Migrate. It is part of the Python typeshed project, which maintains a collection of high-quality type hints for various Python packages. Updates are released regularly to keep pace with changes in the runtime libraries they type-check.
pip install types-flask-migrateVerified import paths — ran on the pinned version, not inferred.
To use `types-flask-migrate`, install it alongside `flask-migrate` and `mypy`. The stubs provide type hints for your code that uses `flask-migrate`. There is no direct runtime import or usage of `types-flask-migrate` itself; it's consumed by type checkers. The example demonstrates a minimal Flask-Migrate setup that `mypy` would then analyze.
Ensure `flask-migrate` and `types-flask-migrate` are up-to-date. If issues persist, check the `typeshed` GitHub issues for specific version compatibility notes.
Install `types-flask-sqlalchemy` and `types-sqlalchemy` if your project uses them to achieve comprehensive type checking.
If encountering `mypy` errors due to missing stubs for specific `flask-migrate` features, consider contributing to `typeshed` or using `# type: ignore` as a temporary workaround with a comment explaining why.
No dependency data recorded yet.