kaxil commented on a change in pull request #14640:
URL: https://github.com/apache/airflow/pull/14640#discussion_r589854984
##########
File path: airflow/models/dag.py
##########
@@ -745,10 +745,18 @@ def tasks(self, val):
def task_ids(self) -> List[str]:
return list(self.task_dict.keys())
+ @property
+ def task_group_dict(self) -> Dict[str, "TaskGroup"]:
+ return {k: v for k, v in
self._task_group.get_task_group_dict().items() if k is not None}
Review comment:
Since `.task_group` does the same
```suggestion
return {k: v for k, v in
self.task_group.get_task_group_dict().items() if k is not None}
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]