chore: indicate to mypy that InferenceProvider.rerank is concrete (#3238)

This commit is contained in:
Matthew Farrellee 2025-08-22 14:02:13 -05:00 committed by GitHub
parent da73f1a180
commit 2ee898cc4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 1 additions and 62 deletions

View file

@ -1170,6 +1170,7 @@ class InferenceProvider(Protocol):
:returns: RerankResponse with indices sorted by relevance score (descending).
"""
raise NotImplementedError("Reranking is not implemented")
return # this is so mypy's safe-super rule will consider the method concrete
@webmethod(route="/openai/v1/completions", method="POST")
async def openai_completion(