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_r348555076
 
 

 ##########
 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:
   It just checks if module is loaded in modules[] dictionary. So yes - 
slightly slower than not doing anything but i do no think it should be a 
problem at parsing time. But it's a good catch indeed.

----------------------------------------------------------------
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

Reply via email to