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 go one further and say the
setter can also always store it as 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 or what type it is, we'll already know it's a list.
--
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]