From f3117e719b8d813906c7e15cf2454fe75d7ff79c Mon Sep 17 00:00:00 2001 From: olaughter Date: Tue, 9 Apr 2024 13:30:23 +0100 Subject: [PATCH] Add docstring and return type hint --- src/index/vespa_.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index/vespa_.py b/src/index/vespa_.py index a61baa2..9cf0399 100644 --- a/src/index/vespa_.py +++ b/src/index/vespa_.py @@ -350,7 +350,8 @@ def _get_vespa_instance() -> Vespa: ) -def _handle_feed_error(response: VespaResponse, id: str): +def _handle_feed_error(response: VespaResponse, id: str) -> None: + """Callback for vespa feed""" if not response.is_successful(): raise VespaIndexError(f"Indexing Failed on document with id: {id}, body: {response.json}")