potiuk commented on a change in pull request #6601: [AIRFLOW-6010] Remove
cyclic imports and pylint disables
URL: https://github.com/apache/airflow/pull/6601#discussion_r349906176
##########
File path: airflow/models/baseoperator.py
##########
@@ -463,6 +460,7 @@ def __rshift__(self, other):
If "Other" is a DAG, the DAG is assigned to the Operator.
"""
+ from airflow.models.dag import DAG
Review comment:
https://stackoverflow.com/questions/32151193/is-there-a-performance-cost-putting-python-imports-inside-functions
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services