mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-15 09:12:18 +00:00
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:
parent
e77568dca1
commit
edfac7e5a8
1 changed files with 1 additions and 1 deletions
|
|
@ -8743,7 +8743,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`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue