diff --git a/CHANGELOG.md b/CHANGELOG.md index f86a258..473f2a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 8.15.0 (2024-08-09) + +* Removed call to `raise_for_status()` when using `HttpxAsyncHttpNode` to prevent exceptions being raised for 404 responses ([#182](https://github.com/elastic/elastic-transport-python/pull/182)) +* Documented response classes ([#175](https://github.com/elastic/elastic-transport-python/pull/175)) +* Dropped support for Python 3.7 ([#179](https://github.com/elastic/elastic-transport-python/pull/179)) + ## 8.13.1 (2024-04-28) - Fixed requests 2.32 compatibility (#164) diff --git a/elastic_transport/_node/_http_aiohttp.py b/elastic_transport/_node/_http_aiohttp.py index cc5df74..79dbf82 100644 --- a/elastic_transport/_node/_http_aiohttp.py +++ b/elastic_transport/_node/_http_aiohttp.py @@ -23,7 +23,7 @@ import re import ssl import warnings -from typing import Optional, Union +from typing import Any, MutableMapping, Optional, Union from .._compat import warn_stacklevel from .._exceptions import ConnectionError, ConnectionTimeout, SecurityWarning, TlsError @@ -170,7 +170,7 @@ async def perform_request( # type: ignore[override] else: body_to_send = None - kwargs = {} + kwargs: MutableMapping[str, Any] = {} if self._ssl_assert_fingerprint: kwargs["ssl"] = aiohttp_fingerprint(self._ssl_assert_fingerprint) diff --git a/elastic_transport/_version.py b/elastic_transport/_version.py index 9c93e47..38a0b39 100644 --- a/elastic_transport/_version.py +++ b/elastic_transport/_version.py @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -__version__ = "8.13.1" +__version__ = "8.15.0"