fix linting and typechecking
This commit is contained in:
@@ -864,7 +864,8 @@ class VonageClient:
|
||||
except Exception as exc:
|
||||
logger.error(f"Exception in SDK callback task: {exc}")
|
||||
finally:
|
||||
active_tasks.discard(asyncio.current_task())
|
||||
if (current := asyncio.current_task()) is not None:
|
||||
active_tasks.discard(current)
|
||||
queue.task_done()
|
||||
|
||||
try:
|
||||
|
||||
@@ -25,9 +25,9 @@ from pipecat.transports.base_input import BaseInputTransport
|
||||
from pipecat.transports.base_output import BaseOutputTransport
|
||||
from pipecat.transports.base_transport import BaseTransport
|
||||
from pipecat.transports.vonage.client import (
|
||||
Session,
|
||||
Stream,
|
||||
Subscriber,
|
||||
Session, # type: ignore[attr-defined]
|
||||
Stream, # type: ignore[attr-defined]
|
||||
Subscriber, # type: ignore[attr-defined]
|
||||
VonageClient,
|
||||
VonageClientListener,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user