ferruzzi commented on code in PR #55086:
URL: https://github.com/apache/airflow/pull/55086#discussion_r2320258127


##########
airflow-core/src/airflow/models/dag.py:
##########
@@ -2009,12 +2012,25 @@ def next_dagrun_data_interval(self, value: 
tuple[datetime, datetime] | None) ->
     @property

Review Comment:
   Yeah, FWIW, I think that's the right answer.  I'd og one further and say I 
think this could be a list no matter what.
   
   If no deadline, then it's an empty list.  If one deadline it's a len(1) 
list.  If N deadlines, then it's a len(N) list.  I think that would simplify 
things a bit, later on we just always iterate the list and don't care how many 
are in it.



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