From 4091816f84aef89253aa85ce1f6c652e315a3dcb Mon Sep 17 00:00:00 2001 From: Oleksandr Loyko Date: Sat, 21 Dec 2024 08:39:12 -0500 Subject: [PATCH] Fixed lint error. (#875) Signed-off-by: Alex Loyko --- CHANGELOG.md | 1 + opensearchpy/_async/http_aiohttp.py | 2 +- opensearchpy/connection/http_async.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 129711b2..f62a9669 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Changed - Small refactor of AWS Signer classes for both sync and async clients ([866](https://github.com/opensearch-project/opensearch-py/pull/866)) - Small refactor to fix overwriting the module files when generating apis ([874](https://github.com/opensearch-project/opensearch-py/pull/874)) +- Fixed a "type ignore" lint error ### Deprecated ### Removed ### Fixed diff --git a/opensearchpy/_async/http_aiohttp.py b/opensearchpy/_async/http_aiohttp.py index 1de47634..a3c98c1a 100644 --- a/opensearchpy/_async/http_aiohttp.py +++ b/opensearchpy/_async/http_aiohttp.py @@ -386,4 +386,4 @@ async def text(self, encoding: Any = None, errors: str = "strict") -> Any: if self._body is None: await self.read() - return self._body.decode("utf-8", "surrogatepass") # type: ignore + return self._body.decode("utf-8", "surrogatepass") diff --git a/opensearchpy/connection/http_async.py b/opensearchpy/connection/http_async.py index 7fb69093..0f3f8004 100644 --- a/opensearchpy/connection/http_async.py +++ b/opensearchpy/connection/http_async.py @@ -298,4 +298,4 @@ async def text(self, encoding: Any = None, errors: str = "strict") -> Any: if self._body is None: await self.read() - return self._body.decode("utf-8", "surrogatepass") # type: ignore + return self._body.decode("utf-8", "surrogatepass")