From bdf9aaa3c6194da5e8745af4c571a08a77ddc4f1 Mon Sep 17 00:00:00 2001 From: Jeff Jennings Date: Fri, 1 Nov 2024 10:30:19 -0400 Subject: [PATCH] AlgoliaIndex: alter return --- astropylibrarian/algolia/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/astropylibrarian/algolia/client.py b/astropylibrarian/algolia/client.py index 7a1f48a..1cc448c 100644 --- a/astropylibrarian/algolia/client.py +++ b/astropylibrarian/algolia/client.py @@ -67,10 +67,10 @@ class AlgoliaIndex(BaseAlgoliaIndex): Name of the Algolia index. """ - async def __aenter__(self) -> SearchClient: + async def __aenter__(self) -> "AlgoliaIndex": self._logger.debug("Opening algolia client") self.algolia_client = SearchClient(self.app_id, self._key) - return self.algolia_client + return self async def __aexit__( self,