fix: handle optional cookie field for mypy type check

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Justin Visser 2026-03-01 23:04:02 +01:00
parent f649c07e10
commit 0ee89136ff

View file

@ -55,7 +55,7 @@ def _apply_scholar_http_settings(payload: AdminScholarHttpSettingsUpdateRequest)
max_length=_MAX_ACCEPT_LANGUAGE_LENGTH, max_length=_MAX_ACCEPT_LANGUAGE_LENGTH,
) )
cookie = _normalize_header_value( cookie = _normalize_header_value(
payload.cookie, payload.cookie or "",
field_name="cookie", field_name="cookie",
max_length=_MAX_COOKIE_LENGTH, max_length=_MAX_COOKIE_LENGTH,
) )