ashb commented on a change in pull request #20931:
URL: https://github.com/apache/airflow/pull/20931#discussion_r787673127



##########
File path: airflow/models/xcom_arg.py
##########
@@ -59,9 +61,9 @@ class XComArg(DependencyMixin):
     :type key: str
     """
 
-    def __init__(self, operator: Union[BaseOperator, MappedOperator], key: str 
= XCOM_RETURN_KEY):
-        self._operator = operator
-        self._key = key
+    def __init__(self, operator: "Union[BaseOperator, MappedOperator]", key: 
str = XCOM_RETURN_KEY):

Review comment:
       To avoid uncessary imports/reduce chance import cycles.




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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to