Skip to content

Commit 4506995

Browse files
committed
Fixes python 3.8 compatability.
1 parent 6d01338 commit 4506995

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ads/aqua/client/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
Optional,
2121
Sequence,
2222
Tuple,
23+
Type,
2324
TypeVar,
2425
Union,
2526
)
@@ -365,7 +366,7 @@ def __enter__(self: _T) -> _T: # noqa: PYI019
365366

366367
def __exit__(
367368
self,
368-
exc_type: Optional[type[BaseException]] = None,
369+
exc_type: Optional[Type[BaseException]] = None,
369370
exc: Optional[BaseException] = None,
370371
exc_tb: Optional[TracebackType] = None,
371372
) -> None:
@@ -597,7 +598,7 @@ async def __aenter__(self: _T) -> _T: # noqa: PYI019
597598

598599
async def __aexit__(
599600
self,
600-
exc_type: Optional[type[BaseException]] = None,
601+
exc_type: Optional[Type[BaseException]] = None,
601602
exc: Optional[BaseException] = None,
602603
exc_tb: Optional[TracebackType] = None,
603604
) -> None:

0 commit comments

Comments
 (0)