Skip to content

Commit 11c42f1

Browse files
committed
fix: Update Proto Version to 6.31.1 for compatibility
Fixes #173
1 parent d537285 commit 11c42f1

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

buf.gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ managed:
1919
plugins:
2020
# Generate python protobuf related code
2121
# Generates *_pb2.py files, one for each .proto
22-
- remote: buf.build/protocolbuffers/python:v29.3
22+
- remote: buf.build/protocolbuffers/python:v31.1
2323
out: src/a2a/grpc
2424
# Generate python service code.
2525
# Generates *_pb2_grpc.py
2626
- remote: buf.build/grpc/python
2727
out: src/a2a/grpc
2828
# Generates *_pb2.pyi files.
29-
- remote: buf.build/protocolbuffers/pyi:v29.3
29+
- remote: buf.build/protocolbuffers/pyi:v31.1
3030
out: src/a2a/grpc

src/a2a/grpc/a2a_pb2.py

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/a2a/grpc/a2a_pb2.pyi

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import datetime
2+
13
from google.api import annotations_pb2 as _annotations_pb2
24
from google.api import client_pb2 as _client_pb2
35
from google.api import field_behavior_pb2 as _field_behavior_pb2
@@ -7,7 +9,8 @@ from google.protobuf.internal import containers as _containers
79
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
810
from google.protobuf import descriptor as _descriptor
911
from google.protobuf import message as _message
10-
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
12+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
13+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
1114

1215
DESCRIPTOR: _descriptor.FileDescriptor
1316

@@ -77,7 +80,7 @@ class TaskStatus(_message.Message):
7780
state: TaskState
7881
update: Message
7982
timestamp: _timestamp_pb2.Timestamp
80-
def __init__(self, state: _Optional[_Union[TaskState, str]] = ..., update: _Optional[_Union[Message, _Mapping]] = ..., timestamp: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
83+
def __init__(self, state: _Optional[_Union[TaskState, str]] = ..., update: _Optional[_Union[Message, _Mapping]] = ..., timestamp: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
8184

8285
class Part(_message.Message):
8386
__slots__ = ("text", "file", "data")

src/a2a/grpc/a2a_pb2_grpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"""Client and server classes corresponding to protobuf-defined services."""
33
import grpc
44

5-
from . import a2a_pb2 as a2a__pb2
5+
import a2a_pb2 as a2a__pb2
66

77

88
class A2AServiceStub(object):

0 commit comments

Comments
 (0)