casassg commented on PR #10587:
URL: https://github.com/apache/airflow/pull/10587#issuecomment-1146888251

   Guessing you are referring why not @dag decorator directly creates the 
instance for the DAG? The reason was mostly to stick to pythonic usage 
patterns. A decorator in python extends functionality but it shouldn't have 
side effects unless function is called. Separately also allowed for  making 
user explicitly declare function arg values which are then used as default 
DagParams.
   
   Would be curious on what alternative would we want to consider?


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