Skip to content

Commit 52a6bfd

Browse files
committed
temp
1 parent 3b66b2a commit 52a6bfd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ydb/_grpc/grpcwrapper/common_utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
from ...driver import Driver
2828
from ...aio.driver import Driver as DriverIO
29-
import ydb.aio
3029

3130
# Workaround for good IDE and universal for runtime
3231
if typing.TYPE_CHECKING:
@@ -183,7 +182,7 @@ def _clean_executor(self, wait: bool):
183182
if self._wait_executor:
184183
self._wait_executor.shutdown(wait)
185184

186-
async def _start_asyncio_driver(self, driver: ydb.aio.Driver, stub, method):
185+
async def _start_asyncio_driver(self, driver: DriverIO, stub, method):
187186
requests_iterator = QueueToIteratorAsyncIO(self.from_client_grpc)
188187
stream_call = await driver(
189188
requests_iterator,
@@ -193,7 +192,7 @@ async def _start_asyncio_driver(self, driver: ydb.aio.Driver, stub, method):
193192
self._stream_call = stream_call
194193
self.from_server_grpc = stream_call.__aiter__()
195194

196-
async def _start_sync_driver(self, driver: ydb.Driver, stub, method):
195+
async def _start_sync_driver(self, driver: Driver, stub, method):
197196
requests_iterator = AsyncQueueToSyncIteratorAsyncIO(self.from_client_grpc)
198197
self._wait_executor = concurrent.futures.ThreadPoolExecutor(max_workers=1)
199198

0 commit comments

Comments
 (0)