This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 33af2b1 Update TaskGroup typing (#16811)
33af2b1 is described below
commit 33af2b19a210e1041ac93b563123d41a29a4d637
Author: Alex Tonkonozhenko <[email protected]>
AuthorDate: Mon Jul 5 18:09:22 2021 +0300
Update TaskGroup typing (#16811)
* Update TaskGroup typing
* Update task_group.py
---
airflow/utils/task_group.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow/utils/task_group.py b/airflow/utils/task_group.py
index 4c91c09..5f04f26 100644
--- a/airflow/utils/task_group.py
+++ b/airflow/utils/task_group.py
@@ -247,7 +247,7 @@ class TaskGroup(TaskMixin):
"""Set a TaskGroup/task/list of task upstream of this TaskGroup."""
self._set_relative(task_or_task_list, upstream=True)
- def __enter__(self):
+ def __enter__(self) -> "TaskGroup":
TaskGroupContext.push_context_managed_task_group(self)
return self