From 48a3f37f01595708b2a7806782f040c428ea5aec Mon Sep 17 00:00:00 2001 From: Jakob Keller <57402305+jakob-keller@users.noreply.github.com> Date: Tue, 24 Oct 2023 18:53:37 +0200 Subject: [PATCH] remove confusing `aiobotocore.session.Session` symbol (#1047) BREAKING-CHANGE: replace any use of `aiobotocore.session.Session` by `botocore.session.Session` --- CHANGES.rst | 5 +++-- aiobotocore/__init__.py | 2 +- aiobotocore/session.py | 12 ++++-------- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 39e5a693..9f0477f0 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,9 +1,10 @@ Changes ------- -2.7.1 (2023-10-19) +2.8.0 (2023-10-24) ^^^^^^^^^^^^^^^^^^ -* added AioStubber that return AioAWSResponse() +* add AioStubber that returns AioAWSResponse() +* remove confusing `aiobotocore.session.Session` symbol 2.7.0 (2023-10-17) ^^^^^^^^^^^^^^^^^^ diff --git a/aiobotocore/__init__.py b/aiobotocore/__init__.py index e90ba7fa..f2df444a 100644 --- a/aiobotocore/__init__.py +++ b/aiobotocore/__init__.py @@ -1 +1 @@ -__version__ = '2.7.1' +__version__ = '2.8.0' diff --git a/aiobotocore/session.py b/aiobotocore/session.py index fcae6996..29fd2bb2 100644 --- a/aiobotocore/session.py +++ b/aiobotocore/session.py @@ -1,12 +1,8 @@ from botocore import UNSIGNED, translate from botocore.exceptions import PartialCredentialsError -from botocore.session import ( - EVENT_ALIASES, - ServiceModel, - Session, - UnknownServiceError, - copy, -) +from botocore.session import EVENT_ALIASES, ServiceModel +from botocore.session import Session as _SyncSession +from botocore.session import UnknownServiceError, copy from . import retryhandler from .client import AioBaseClient, AioClientCreator @@ -31,7 +27,7 @@ async def __aexit__(self, exc_type, exc_val, exc_tb): await self._client.__aexit__(exc_type, exc_val, exc_tb) -class AioSession(Session): +class AioSession(_SyncSession): # noinspection PyMissingConstructor def __init__( self,