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



##########
File path: airflow/models/dag.py
##########
@@ -112,6 +113,51 @@ def get_last_dagrun(dag_id, session, 
include_externally_triggered=False):
     return query.first()
 
 
+class _NextDagRunInfoLegacy(NamedTuple):
+    """Legacy return format for ``DAG.next_dagrun_info()``.
+
+    In the pre-AIP-39 implementation, ``DAG.next_dagrun_info()`` returns a
+    2-tuple ``(execution_date, run_after)``.
+    """
+
+    execution_date: Optional[pendulum.DateTime]
+    run_after: Optional[pendulum.DateTime]
+
+
+class _NextDagRunInfoCompat(_NextDagRunInfoLegacy):

Review comment:
       If it’s hard to describe, it’s probably a bad idea 🙂 I’m removing this 
altogether, we only need to fix a few tests anyway.




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