From 9262eb732a012c7904f20b14681d00474c31a21b Mon Sep 17 00:00:00 2001 From: shrey kharbanda Date: Thu, 24 Sep 2026 00:20:40 +0000 Subject: [PATCH] style: name the pyright rule on the reference-pixel stamp suppression --- litellm/llms/custom_httpx/llm_http_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/llms/custom_httpx/llm_http_handler.py b/litellm/llms/custom_httpx/llm_http_handler.py index 2a40d578af4..a5e36ef50d7 100644 --- a/litellm/llms/custom_httpx/llm_http_handler.py +++ b/litellm/llms/custom_httpx/llm_http_handler.py @@ -385,7 +385,8 @@ def _collect_ws_project_quota_callbacks() -> tuple[ProjectQuotaCallback, ...]: def _with_reference_pixels(response: ImageResponse, reference_pixels: int | None) -> ImageResponse: if reference_pixels is not None: - response._reference_pixels = reference_pixels # mutable-ok: stamp the measured reference pixels + # mutable-ok: handler stamps this billing field + response._reference_pixels = reference_pixels # pyright: ignore[reportPrivateUsage] # billing stamp return response