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:17:42 UTC

[GitHub] [airflow] uranusjr commented on a change in pull request #20945: Implement enough interface for MappedOperator to be baggable

uranusjr commented on a change in pull request #20945:
URL: https://github.com/apache/airflow/pull/20945#discussion_r787585718



##########
File path: airflow/models/baseoperator.py
##########
@@ -467,11 +476,10 @@ class derived from this one results in the creation of a task object,
     :type doc_yaml: str
     """
 
-    # For derived classes to define which fields will get jinjaified
-    template_fields: Sequence[str] = ()
-    # Defines which files extensions to look for in the templated fields
-    template_ext: Sequence[str] = ()
-    # Template field renderers indicating type of the field, for example sql, json, bash
+    # Implementing Operator.
+    template_fields: Collection[str] = ()

Review comment:
       It’s the other way around, from Sequence to a Collection; Collection is looser than Sequence and should work in subclasses (I think; we can always change this back).




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