This package provides Mypy plugins for Apache Airflow to enhance type checking capabilities.
pip install apache-airflow-mypy
Add the plugins to your mypy.ini or pyproject.toml configuration:
[mypy] plugins = airflow_mypy.plugins.decorators, airflow_mypy.plugins.outputs
[tool.mypy] plugins = ["airflow_mypy.plugins.decorators", "airflow_mypy.plugins.outputs"]
Provides type checking support for Airflow decorators that modify function signatures.
Handles type checking for operator outputs and XComArg types, allowing proper type inference when passing task outputs between tasks.