mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +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
8441296f70
commit
e1b0a578e3
1 changed files with 1 additions and 1 deletions
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue