henry3260 commented on code in PR #62624:
URL: https://github.com/apache/airflow/pull/62624#discussion_r3281451072
##########
airflow-core/src/airflow/api_fastapi/core_api/openapi/exceptions.py:
##########
@@ -26,16 +28,34 @@ class HTTPExceptionResponse(BaseModel):
detail: str | dict
-def create_openapi_http_exception_doc(responses_status_code: list[int]) ->
dict:
+HTTPExceptionResponseDoc = int | tuple[int, str]
Review Comment:
> Nit: the type alias is only used once in the signature right below. Worth
keeping for readability, but `responses_status_code: Sequence[int | tuple[int,
str]]` would be just as clear and one fewer name to track. Up to you.
>
> Drafted-by: Claude Code (Opus 4.7); reviewed by @pierrejeambrun before
posting
Applied!
--
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]