Skip to content

Commit a53e924

Browse files
committed
feat: deprecate async_timeout
* async_timeout is now integrated to Python's builtin asyncio
1 parent 80f010f commit a53e924

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ install_requires =
3737
protobuf~=4.25.3
3838
grpcio==1.62.2
3939
grpcio-tools==1.62.2
40-
async-timeout~=4.0.0
4140
zip_safe = false
4241
include_package_data = true
4342

src/etcetra/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
TypeVar,
1919
Union,
2020
)
21-
from async_timeout import timeout
2221

2322
import grpc
2423
from grpc.aio import (
@@ -1617,7 +1616,7 @@ async def __aenter__(self) -> None:
16171616
else:
16181617
self._lease_id = None
16191618
try:
1620-
async with timeout(self.timeout_seconds):
1619+
async with asyncio.timeout(self.timeout_seconds):
16211620
response = await stub.Lock(
16221621
v3lock_pb2.LockRequest(
16231622
name=self.name.encode(self.encoding),

0 commit comments

Comments
 (0)