Skip to content

Commit

Permalink
Fixed lint error.
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Loyko <[email protected]>
  • Loading branch information
AlexLoyko committed Dec 20, 2024
1 parent 9777ebe commit dee624d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion opensearchpy/_async/http_aiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
2 changes: 1 addition & 1 deletion opensearchpy/connection/http_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Check warning on line 301 in opensearchpy/connection/http_async.py

View check run for this annotation

Codecov / codecov/patch

opensearchpy/connection/http_async.py#L301

Added line #L301 was not covered by tests

0 comments on commit dee624d

Please sign in to comment.