Skip to content

Replace deprecated PythonOperator module in example_dag - #12064

Merged
kaxil merged 1 commit into
apache:masterfrom
astronomer:remove-depre-op
Nov 3, 2020
Merged

Replace deprecated PythonOperator module in example_dag#12064
kaxil merged 1 commit into
apache:masterfrom
astronomer:remove-depre-op

Conversation

@kaxil

@kaxil kaxil commented Nov 3, 2020

Copy link
Copy Markdown
Member

Without this change, users will get a warning when using example dags too

- from airflow.operators.python_operator import PythonOperator
+ from airflow.operators.python import PythonOperator

^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

- from airflow.operators.python_operator import PythonOperator
+ from airflow.operators.python import PythonOperator
@kaxil kaxil changed the title Replace deprecated PythonOperator module with the new one Replace deprecated PythonOperator module in example_dag Nov 3, 2020
@kaxil
kaxil requested a review from turbaszek November 3, 2020 13:31
@github-actions

github-actions Bot commented Nov 3, 2020

Copy link
Copy Markdown
Contributor

The PR needs to run all tests because it modifies core of Airflow! Please rebase it to latest master or ask committer to re-run it!

@github-actions github-actions Bot added the full tests needed We need to run full set of tests for this PR to merge label Nov 3, 2020
@kaxil
kaxil merged commit 2ebe623 into apache:master Nov 3, 2020
@kaxil
kaxil deleted the remove-depre-op branch November 3, 2020 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full tests needed We need to run full set of tests for this PR to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants