amoghrajesh commented on code in PR #57494:
URL: https://github.com/apache/airflow/pull/57494#discussion_r2476631578


##########
task-sdk/tests/task_sdk/api/test_client.py:
##########
@@ -1300,7 +1300,7 @@ def handle_request(request: httpx.Request) -> 
httpx.Response:
             params=None,
             multiple=False,
         )
-        assert isinstance(result, HITLDetailRequestResult)
+        assert isinstance(result, HITLDetailRequest)

Review Comment:
   Its the name of the model. The `add_response` API returns response of this 
model: 
https://github.com/apache/airflow/blob/main/task-sdk/src/airflow/sdk/api/datamodels/_generated.py#L546-L558
   
   `HITLDetailRequestResult` was just a wrapper around `HITLDetailRequest` for 
comms: 
   
   ```python
   
   class HITLDetailRequestResult(HITLDetailRequest):
       """Response to CreateHITLDetailPayload request."""
   
       type: Literal["HITLDetailRequestResult"] = "HITLDetailRequestResult"
   ```



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