ashb commented on code in PR #46719:
URL: https://github.com/apache/airflow/pull/46719#discussion_r1954304677


##########
task_sdk/src/airflow/sdk/execution_time/comms.py:
##########
@@ -117,7 +117,7 @@ def from_xcom_response(cls, xcom_response: XComResponse) -> 
XComResult:
         XComResponse is autogenerated from the API schema, so we need to 
convert it to XComResult
         for communication between the Supervisor and the task process.
         """
-        return cls(**xcom_response.model_dump())
+        return cls(**xcom_response.model_dump(), type="XComResult")

Review Comment:
   If this was just to make an idea happy then try this on L110:
   
   ```python
       kind: Literal["XComResult"] = Field(init=False, default="XComResult")
   ```



-- 
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