fix: resolve remaining ruff lint and mypy type errors
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
bf04c77aa9
commit
ac002131d6
24 changed files with 219 additions and 57 deletions
|
|
@ -54,7 +54,7 @@ class CSRFMiddleware(BaseHTTPMiddleware):
|
|||
if request_token is None and self._is_form_payload(request):
|
||||
body = await request.body()
|
||||
request_token = self._token_from_form_body(request, body)
|
||||
request._receive = self._build_receive(body) # type: ignore[attr-defined]
|
||||
request._receive = self._build_receive(body)
|
||||
|
||||
if not request_token or not compare_digest(str(session_token), str(request_token)):
|
||||
structured_log(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue