From 559af6629c56a70acc4e4e3785f1d29c5cd294e1 Mon Sep 17 00:00:00 2001 From: Bhavani Ravi Date: Tue, 3 Oct 2023 19:35:08 +0530 Subject: [PATCH 1/2] fixes: #512 Wrong return type hint in async_scan Signed-off-by: Bhavani Ravi --- opensearchpy/_async/helpers/actions.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]], From 1f1f97f66545b90c0a7dc641001f781955409fed Mon Sep 17 00:00:00 2001 From: Bhavani Ravi Date: Tue, 3 Oct 2023 19:47:39 +0530 Subject: [PATCH 2/2] add: changelog Signed-off-by: Bhavani Ravi --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca26dacb..902bb346 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -123,6 +123,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