Skip to content

Commit

Permalink
Merge pull request #50 from astropy/algolia_6
Browse files Browse the repository at this point in the history
AlgoliaIndex: alter return
  • Loading branch information
jeffjennings authored Nov 1, 2024
2 parents 96cf7e5 + bdf9aaa commit d3a3e94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions astropylibrarian/algolia/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d3a3e94

Please sign in to comment.