Skip to content

airflow3-suggested-update (AIR311)

Derived from the Airflow linter.

Fix is sometimes available.

This rule is unstable and in preview. The --preview flag is required for use.

What it does

Checks for uses of deprecated Airflow functions and values that still have a compatibility layer.

Why is this bad?

Airflow 3.0 removed various deprecated functions, members, and other values. Some have more modern replacements. Others are considered too niche and not worth to be maintained in Airflow. Even though these symbols still work fine on Airflow 3.0, they are expected to be removed in a future version. The user is suggested to replace the original usage with the new ones.

Example

from airflow import Dataset


Dataset(uri="test://test/")

Use instead:

from airflow.sdk import Asset


Asset(uri="test://test/")