You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 966da64
Browse filesBrowse the repository at this point in the historyBrowse files
style: use http.HTTPStatus directly instead of inventing constants
In client.py: drop _CLIENT_ERROR_LOW/_SERVER_ERROR_LOW/_SERVER_ERROR_HIGH
in favor of HTTPStatus.BAD_REQUEST/INTERNAL_SERVER_ERROR direct comparison.
600 is the only literal that stays (no stdlib equivalent for the synthetic
5xx upper bound); single noqa with justification, same pattern as the 0.1
transport.
In tests/test_middleware.py: replace _STATUS_OK/_STATUS_UPGRADED/
_STATUS_SERVICE_UNAVAILABLE with HTTPStatus.OK / HTTPStatus.IM_USED /
HTTPStatus.SERVICE_UNAVAILABLE.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments