From 626659bef75e20c35e1e34423681eefeebd69cb2 Mon Sep 17 00:00:00 2001 From: Bhavani Ravi Date: Tue, 3 Oct 2023 20:15:35 +0530 Subject: [PATCH] fixes: #512 Wrong return type hint in async_scan (#520) * fixes: #512 Wrong return type hint in async_scan Signed-off-by: Bhavani Ravi * add: changelog Signed-off-by: Bhavani Ravi --------- Signed-off-by: Bhavani Ravi Signed-off-by: roma2023 --- CHANGELOG.md | 1 + opensearchpy/_async/helpers/actions.pyi | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 85a4965b..92691507 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -126,6 +126,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Removed patch versions in integration tests for OpenSearch 1.0.0 - 2.3.0 to reduce Github Action jobs ([#262](https://github.com/opensearch-project/opensearch-py/pull/262)) ### Fixed - Fixed DeprecationWarning emitted from urllib3 1.26.13+ ([#246](https://github.com/opensearch-project/opensearch-py/pull/246)) +- Fixed Wrong return type hint in `async_scan` ([520](https://github.com/opensearch-project/opensearch-py/pull/520)) ### Security [Unreleased]: https://github.com/opensearch-project/opensearch-py/compare/v2.3.1...HEAD diff --git a/opensearchpy/_async/helpers/actions.pyi b/opensearchpy/_async/helpers/actions.pyi index be000ae8..cd6b6974 100644 --- a/opensearchpy/_async/helpers/actions.pyi +++ b/opensearchpy/_async/helpers/actions.pyi @@ -100,7 +100,7 @@ def async_scan( clear_scroll: bool = ..., scroll_kwargs: Optional[Mapping[str, Any]] = ..., **kwargs: Any -) -> AsyncGenerator[int, None]: ... +) -> AsyncGenerator[dict[str, Any], None]: ... async def async_reindex( client: AsyncOpenSearch, source_index: Union[str, Collection[str]],