(WAS: Operator Templating in Airflow 3)

Hi all,

Following comments on the Google Doc, and some experiments on my end, I’ve 
revised the document a bit, and created an entry in Confluence as

AIP-80: Explicit Template Fields in Operator Arguments
https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-80%3A+Explicit+Template+Fields+in+Operator+Arguments

TL;DR changes from the initial submission:

- We’ll kill templates_ext.
- The template_fields attribute will be renamed to _template_fields (private), 
not removed
- We’ll enforce the argument names and attributes of template fields must 
match, potentially using either dataclasses or attrs to create operators instead
- Entries in _template_fields will be kept in sync with arguments with 
pre-commit until it’s viable to retrieve the information directly from 
annotations.

Some minor text has also been added to clarify on questions raised previously 
in the comments. Further comments are still very much welcomed.

TP

Reply via email to