SameerMesiah97 commented on code in PR #70936:
URL: https://github.com/apache/airflow/pull/70936#discussion_r3700257374
##########
airflow-ctl/src/airflowctl/api/operations.py:
##########
@@ -103,6 +103,20 @@ def _build_query_params(**values: Any) -> dict[str, Any]:
return {name: _serialize_query_param(value) for name, value in
values.items() if value is not None}
+def _has_json_body(response: httpx.Response) -> bool:
+ """
+ Check whether a response declares a JSON body.
Review Comment:
Keep this line in the dosctring.
The remaining part of the docstring should be in a comment above the line
where you are parsing the JSON.
--
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]