Skip to content

Commit a16e40f

Browse files
committed
Fix ruff lint error TC001
1 parent 210476b commit a16e40f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/a2a/client/legacy_grpc.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,22 @@
22

33
import warnings
44

5+
from typing import TYPE_CHECKING
6+
57
from a2a.client.transports.grpc import GrpcTransport
6-
from a2a.grpc import a2a_pb2_grpc
78
from a2a.types import AgentCard
89

910

11+
if TYPE_CHECKING:
12+
from a2a.grpc.a2a_pb2_grpc import A2AServiceStub
13+
14+
1015
class A2AGrpcClient(GrpcTransport):
1116
"""[DEPRECATED] Backwards compatibility wrapper for the gRPC client."""
1217

1318
def __init__(
1419
self,
15-
grpc_stub: 'a2a_pb2_grpc.A2AServiceStub',
20+
grpc_stub: 'A2AServiceStub',
1621
agent_card: AgentCard,
1722
):
1823
warnings.warn(

0 commit comments

Comments
 (0)