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 6a3f837  Remove redundant Union of one item (#19297)
6a3f837 is described below

commit 6a3f837fc93f265d836c92c132d0b3180b863f0c
Author: Tzu-ping Chung <[email protected]>
AuthorDate: Fri Oct 29 15:41:19 2021 +0800

    Remove redundant Union of one item (#19297)
---
 airflow/serialization/serialized_objects.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/serialization/serialized_objects.py 
b/airflow/serialization/serialized_objects.py
index be0ad31..df5ca4e 100644
--- a/airflow/serialization/serialized_objects.py
+++ b/airflow/serialization/serialized_objects.py
@@ -923,7 +923,7 @@ class SerializedTaskGroup(TaskGroup, BaseSerialization):
     """A JSON serializable representation of TaskGroup."""
 
     @classmethod
-    def serialize_task_group(cls, task_group: TaskGroup) -> 
Optional[Union[Dict[str, Any]]]:
+    def serialize_task_group(cls, task_group: TaskGroup) -> Optional[Dict[str, 
Any]]:
         """Serializes TaskGroup into a JSON object."""
         if not task_group:
             return None

Reply via email to