uranusjr commented on a change in pull request #21505:
URL: https://github.com/apache/airflow/pull/21505#discussion_r804822315
##########
File path: airflow/models/taskinstance.py
##########
@@ -1840,7 +1851,7 @@ def _get_previous_dagrun_success() -> Optional["DagRun"]:
def _get_previous_dagrun_data_interval_success() ->
Optional["DataInterval"]:
dagrun = _get_previous_dagrun_success()
- if dagrun is None:
+ if dagrun is None or dag is None:
Review comment:
Because local functions capture `dag` lazily and Mypy is hard to please
:(
--
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]