Skip to content

fix(airflow): use standard provider path for PythonOperator import - #34

Open
Taha-CHALKHA wants to merge 1 commit into
mainfrom
fix/33-standard-python-operator-import
Open

fix(airflow): use standard provider path for PythonOperator import#34
Taha-CHALKHA wants to merge 1 commit into
mainfrom
fix/33-standard-python-operator-import

Conversation

@Taha-CHALKHA

Copy link
Copy Markdown

What

Import PythonOperator from airflow.providers.standard.operators.python
instead of the deprecated airflow.operators.python path.

Why

Airflow 3 deprecates airflow.operators.python; every DAG parse emits a
UserWarning, and the compatibility shim will eventually be removed, which
would break the examples.

Changes

Updated the import in the 5 example DAGs and in airflow/tests/test_dags.py
(one line per file, no behavior change).

Fixes #33

Import PythonOperator from airflow.providers.standard.operators.python
instead of the deprecated airflow.operators.python path (Airflow 3).

Closes #33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move the DAGs off the deprecated airflow.operators.python import path

3 participants