You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/01/19 10:36:27 UTC

[GitHub] [airflow] kaxil commented on a change in pull request #20931: Set dependencies in MappedOperator via XComArgs

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



##########
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:
       ```suggestion
       def __init__(self, operator: Union[BaseOperator, MappedOperator], key: str = XCOM_RETURN_KEY):
   ```
   
   Any reason for this change?




-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org