kaxil 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_r348505549
##########
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:
Are we jumping the gun here and some code below too by importing the DAG
class again on each __rshift__ and __lshift__.
I might be missing something as I am not sure how Python deals with
importing the class that is already imported.
----------------------------------------------------------------
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