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]],