From 4ca15a6e60f7c2f9951ec63ba2de2d4104d515f6 Mon Sep 17 00:00:00 2001 From: Ahmed Allam Date: Sat, 3 Oct 2026 22:07:49 +0000 Subject: [PATCH] style: drop docstrings from the header-value check --- strix/interface/scan_setup.py | 7 ------- tests/test_preflight_header_values.py | 2 -- 2 files changed, 9 deletions(-) diff --git a/strix/interface/scan_setup.py b/strix/interface/scan_setup.py index 30c8db59..7b22250a 100644 --- a/strix/interface/scan_setup.py +++ b/strix/interface/scan_setup.py @@ -67,13 +67,6 @@ def _first_non_ascii(value: str) -> tuple[int, str] | None: def check_header_safe_credentials(settings: Settings) -> None: - """Reject credential settings that cannot travel as HTTP header values. - - httpx encodes header values as ASCII, so a smart quote, non-breaking space - or byte-order mark pasted into an API key otherwise surfaces as a bare - ``UnicodeEncodeError`` from inside the client. Name the setting and the - character instead; the value itself is neither printed nor rewritten. - """ llm = settings.llm candidates: list[tuple[str, str]] = [] if llm.api_key: diff --git a/tests/test_preflight_header_values.py b/tests/test_preflight_header_values.py index cdd8944e..4e99a993 100644 --- a/tests/test_preflight_header_values.py +++ b/tests/test_preflight_header_values.py @@ -1,5 +1,3 @@ -"""Preflight names a non-ASCII character in a credential instead of raising UnicodeEncodeError.""" - from __future__ import annotations import asyncio