fix(streaming): annotate the narrowing helper with object rather than Any

The helper isinstance-narrows its argument, so it does not need a dynamically
typed annotation; object works and keeps the repo's ANN401 budget unchanged.

Signed-off-by: Vineeth Sai <vineethsai4444@gmail.com>
This commit is contained in:
Vineeth Sai 2026-08-27 10:25:36 -07:00
parent 8441296f70
commit e1b0a578e3

View file

@ -8629,7 +8629,7 @@ def _chunks_for_streaming_choice_index(
]
def _renumbered_first_choice(response: Any, index: int) -> Choices | None:
def _renumbered_first_choice(response: object, index: int) -> Choices | None:
"""The single choice a per-index build produced, renumbered to that index.
None when the build did not yield a usable non-streaming choice: `stream_chunk_builder`