[ 
https://issues.apache.org/jira/browse/AIRFLOW-6817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17043578#comment-17043578
 ] 

ASF subversion and git services commented on AIRFLOW-6817:
----------------------------------------------------------

Commit 3320e432a129476dbc1c55be3b3faa3326a635bc in airflow's branch 
refs/heads/master from Ash Berlin-Taylor
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=3320e43 ]

[AIRFLOW-6817] Lazy-load `airflow.DAG` to keep user-facing API untouched (#7517)

`from airflow import DAG` is _such_ a common pattern that it's worth
making sure this stays working.

Since we are now on Python 3 we can use PEP-562 to have officially
supported lazy-loading of attributes on a module.

Since the example_dags will be referred to/copied by users I have
updated them all back to import from the airflow module, but have left
any internal uses untouched.

> Move airflow __init__.py imports to sub-packages
> ------------------------------------------------
>
>                 Key: AIRFLOW-6817
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6817
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 2.0.0
>            Reporter: Jarek Potiuk
>            Priority: Major
>             Fix For: 2.0.0
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to