uranusjr commented on code in PR #23667:
URL: https://github.com/apache/airflow/pull/23667#discussion_r885291843


##########
airflow/models/dagrun.py:
##########
@@ -823,6 +817,8 @@ def verify_integrity(self, session: Session = NEW_SESSION):
 
         # check for removed or restored tasks
         task_ids = set()
+        existing_indexes: Dict["MappedOperator", list] = defaultdict(list)
+        expected_indexes: Dict["MappedOperator", list] = defaultdict(list)

Review Comment:
   Or I think we can make `expected_indexes` take `Dict["MappedOperator", 
Sequence[int]]]` instead so we don’t need to convert `range` to `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]

Reply via email to