@@ -174,9 +174,9 @@ def parse_params(params: QueryParams, message: ProtobufMessage) -> None:
174174 field = fields [k ]
175175 v_list = params .getlist (k )
176176
177- # TODO(https://github.com/a2aproject/a2a-python/issues/1011):
178- # Replace deprecated `field.label` with `field.is_repeated` once the
179- # minimum protobuf version requirement is bumped.
177+ # TODO(https://github.com/a2aproject/a2a-python/issues/1011): Replace
178+ # deprecated `field.label` with `field.is_repeated` once the minimum
179+ # protobuf version requirement is bumped.
180180 if field .label == FieldDescriptor .LABEL_REPEATED :
181181 accumulated : list [Any ] = []
182182 for v in v_list :
@@ -211,9 +211,9 @@ def _check_required_field_violation(
211211) -> ValidationDetail | None :
212212 """Check if a required field is missing or invalid."""
213213 val = getattr (msg , field .name )
214- # TODO(https://github.com/a2aproject/a2a-python/issues/1011):
215- # Replace deprecated `field.label` with `field.is_repeated` once the
216- # minimum protobuf version requirement is bumped.
214+ # TODO(https://github.com/a2aproject/a2a-python/issues/1011): Replace
215+ # deprecated `field.label` with `field.is_repeated` once the minimum
216+ # protobuf version requirement is bumped.
217217 if field .label == FieldDescriptor .LABEL_REPEATED :
218218 if not val :
219219 return ValidationDetail (
@@ -255,9 +255,9 @@ def _recurse_validation(
255255 return errors
256256
257257 val = getattr (msg , field .name )
258- # TODO(https://github.com/a2aproject/a2a-python/issues/1011):
259- # Replace deprecated `field.label` with `field.is_repeated` once the
260- # minimum protobuf version requirement is bumped.
258+ # TODO(https://github.com/a2aproject/a2a-python/issues/1011): Replace
259+ # deprecated `field.label` with `field.is_repeated` once the minimum
260+ # protobuf version requirement is bumped.
261261 if field .label != FieldDescriptor .LABEL_REPEATED :
262262 if msg .HasField (field .name ):
263263 sub_errs = _validate_proto_required_fields_internal (val )
0 commit comments