diff --git a/buf.gen.yaml b/buf.gen.yaml index 3eaf8521..52e23141 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -2,7 +2,7 @@ version: v2 managed: enabled: true plugins: - - remote: buf.build/protocolbuffers/python:v29.3 + - remote: buf.build/protocolbuffers/python:v30.1 out: gen - - remote: buf.build/protocolbuffers/pyi:v29.3 + - remote: buf.build/protocolbuffers/pyi:v30.1 out: gen diff --git a/gen/buf/validate/conformance/cases/bool_pb2.py b/gen/buf/validate/conformance/cases/bool_pb2.py index 86d58c91..c37bde2d 100644 --- a/gen/buf/validate/conformance/cases/bool_pb2.py +++ b/gen/buf/validate/conformance/cases/bool_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/bool.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/bool.proto' ) diff --git a/gen/buf/validate/conformance/cases/bytes_pb2.py b/gen/buf/validate/conformance/cases/bytes_pb2.py index dd02362c..7465ea1a 100644 --- a/gen/buf/validate/conformance/cases/bytes_pb2.py +++ b/gen/buf/validate/conformance/cases/bytes_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/bytes.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/bytes.proto' ) diff --git a/gen/buf/validate/conformance/cases/custom_constraints/custom_constraints_pb2.py b/gen/buf/validate/conformance/cases/custom_constraints/custom_constraints_pb2.py index 68e4c1d2..f65ec675 100644 --- a/gen/buf/validate/conformance/cases/custom_constraints/custom_constraints_pb2.py +++ b/gen/buf/validate/conformance/cases/custom_constraints/custom_constraints_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/custom_constraints/custom_constraints.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/custom_constraints/custom_constraints.proto' ) diff --git a/gen/buf/validate/conformance/cases/custom_constraints/custom_constraints_pb2.pyi b/gen/buf/validate/conformance/cases/custom_constraints/custom_constraints_pb2.pyi index 06e7a75a..8c26b165 100644 --- a/gen/buf/validate/conformance/cases/custom_constraints/custom_constraints_pb2.pyi +++ b/gen/buf/validate/conformance/cases/custom_constraints/custom_constraints_pb2.pyi @@ -17,7 +17,8 @@ from google.protobuf.internal import containers as _containers from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Iterable as _Iterable, Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/enums_pb2.py b/gen/buf/validate/conformance/cases/enums_pb2.py index d54a031a..5d7966b6 100644 --- a/gen/buf/validate/conformance/cases/enums_pb2.py +++ b/gen/buf/validate/conformance/cases/enums_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/enums.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/enums.proto' ) diff --git a/gen/buf/validate/conformance/cases/enums_pb2.pyi b/gen/buf/validate/conformance/cases/enums_pb2.pyi index 4f6eb993..122a3356 100644 --- a/gen/buf/validate/conformance/cases/enums_pb2.pyi +++ b/gen/buf/validate/conformance/cases/enums_pb2.pyi @@ -19,7 +19,8 @@ from google.protobuf.internal import containers as _containers from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Iterable as _Iterable, Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/filename_with_dash_pb2.py b/gen/buf/validate/conformance/cases/filename_with_dash_pb2.py index a6978e33..7db6af47 100644 --- a/gen/buf/validate/conformance/cases/filename_with_dash_pb2.py +++ b/gen/buf/validate/conformance/cases/filename_with_dash_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/filename-with-dash.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/filename-with-dash.proto' ) diff --git a/gen/buf/validate/conformance/cases/ignore_empty_proto2_pb2.py b/gen/buf/validate/conformance/cases/ignore_empty_proto2_pb2.py index 1784abe9..6cb042ab 100644 --- a/gen/buf/validate/conformance/cases/ignore_empty_proto2_pb2.py +++ b/gen/buf/validate/conformance/cases/ignore_empty_proto2_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/ignore_empty_proto2.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/ignore_empty_proto2.proto' ) diff --git a/gen/buf/validate/conformance/cases/ignore_empty_proto2_pb2.pyi b/gen/buf/validate/conformance/cases/ignore_empty_proto2_pb2.pyi index 066d77db..4885b64e 100644 --- a/gen/buf/validate/conformance/cases/ignore_empty_proto2_pb2.pyi +++ b/gen/buf/validate/conformance/cases/ignore_empty_proto2_pb2.pyi @@ -16,7 +16,8 @@ from buf.validate import validate_pb2 as _validate_pb2 from google.protobuf.internal import containers as _containers from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Iterable as _Iterable, Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/ignore_empty_proto3_pb2.py b/gen/buf/validate/conformance/cases/ignore_empty_proto3_pb2.py index c3372108..6ff055a2 100644 --- a/gen/buf/validate/conformance/cases/ignore_empty_proto3_pb2.py +++ b/gen/buf/validate/conformance/cases/ignore_empty_proto3_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/ignore_empty_proto3.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/ignore_empty_proto3.proto' ) diff --git a/gen/buf/validate/conformance/cases/ignore_empty_proto3_pb2.pyi b/gen/buf/validate/conformance/cases/ignore_empty_proto3_pb2.pyi index 416137f8..2044c560 100644 --- a/gen/buf/validate/conformance/cases/ignore_empty_proto3_pb2.pyi +++ b/gen/buf/validate/conformance/cases/ignore_empty_proto3_pb2.pyi @@ -16,7 +16,8 @@ from buf.validate import validate_pb2 as _validate_pb2 from google.protobuf.internal import containers as _containers from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Iterable as _Iterable, Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/ignore_empty_proto_editions_pb2.py b/gen/buf/validate/conformance/cases/ignore_empty_proto_editions_pb2.py index dc48e8cf..67028485 100644 --- a/gen/buf/validate/conformance/cases/ignore_empty_proto_editions_pb2.py +++ b/gen/buf/validate/conformance/cases/ignore_empty_proto_editions_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/ignore_empty_proto_editions.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/ignore_empty_proto_editions.proto' ) diff --git a/gen/buf/validate/conformance/cases/ignore_empty_proto_editions_pb2.pyi b/gen/buf/validate/conformance/cases/ignore_empty_proto_editions_pb2.pyi index e02504ad..13de7337 100644 --- a/gen/buf/validate/conformance/cases/ignore_empty_proto_editions_pb2.pyi +++ b/gen/buf/validate/conformance/cases/ignore_empty_proto_editions_pb2.pyi @@ -16,7 +16,8 @@ from buf.validate import validate_pb2 as _validate_pb2 from google.protobuf.internal import containers as _containers from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Iterable as _Iterable, Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/ignore_proto2_pb2.py b/gen/buf/validate/conformance/cases/ignore_proto2_pb2.py index 3cff91c1..51d7b8cb 100644 --- a/gen/buf/validate/conformance/cases/ignore_proto2_pb2.py +++ b/gen/buf/validate/conformance/cases/ignore_proto2_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/ignore_proto2.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/ignore_proto2.proto' ) diff --git a/gen/buf/validate/conformance/cases/ignore_proto2_pb2.pyi b/gen/buf/validate/conformance/cases/ignore_proto2_pb2.pyi index 041e2497..aaaf6707 100644 --- a/gen/buf/validate/conformance/cases/ignore_proto2_pb2.pyi +++ b/gen/buf/validate/conformance/cases/ignore_proto2_pb2.pyi @@ -16,7 +16,8 @@ from buf.validate import validate_pb2 as _validate_pb2 from google.protobuf.internal import containers as _containers from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Iterable as _Iterable, Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/ignore_proto3_pb2.py b/gen/buf/validate/conformance/cases/ignore_proto3_pb2.py index 3afc4712..e1ebdff7 100644 --- a/gen/buf/validate/conformance/cases/ignore_proto3_pb2.py +++ b/gen/buf/validate/conformance/cases/ignore_proto3_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/ignore_proto3.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/ignore_proto3.proto' ) diff --git a/gen/buf/validate/conformance/cases/ignore_proto3_pb2.pyi b/gen/buf/validate/conformance/cases/ignore_proto3_pb2.pyi index f7715ac1..96179e7f 100644 --- a/gen/buf/validate/conformance/cases/ignore_proto3_pb2.pyi +++ b/gen/buf/validate/conformance/cases/ignore_proto3_pb2.pyi @@ -16,7 +16,8 @@ from buf.validate import validate_pb2 as _validate_pb2 from google.protobuf.internal import containers as _containers from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Iterable as _Iterable, Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/ignore_proto_editions_pb2.py b/gen/buf/validate/conformance/cases/ignore_proto_editions_pb2.py index aaa46363..b4e0a1ad 100644 --- a/gen/buf/validate/conformance/cases/ignore_proto_editions_pb2.py +++ b/gen/buf/validate/conformance/cases/ignore_proto_editions_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/ignore_proto_editions.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/ignore_proto_editions.proto' ) diff --git a/gen/buf/validate/conformance/cases/ignore_proto_editions_pb2.pyi b/gen/buf/validate/conformance/cases/ignore_proto_editions_pb2.pyi index daea8881..4a04dc4e 100644 --- a/gen/buf/validate/conformance/cases/ignore_proto_editions_pb2.pyi +++ b/gen/buf/validate/conformance/cases/ignore_proto_editions_pb2.pyi @@ -16,7 +16,8 @@ from buf.validate import validate_pb2 as _validate_pb2 from google.protobuf.internal import containers as _containers from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Iterable as _Iterable, Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/kitchen_sink_pb2.py b/gen/buf/validate/conformance/cases/kitchen_sink_pb2.py index e3ff2496..4549f7d2 100644 --- a/gen/buf/validate/conformance/cases/kitchen_sink_pb2.py +++ b/gen/buf/validate/conformance/cases/kitchen_sink_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/kitchen_sink.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/kitchen_sink.proto' ) diff --git a/gen/buf/validate/conformance/cases/kitchen_sink_pb2.pyi b/gen/buf/validate/conformance/cases/kitchen_sink_pb2.pyi index 880f4117..db56160b 100644 --- a/gen/buf/validate/conformance/cases/kitchen_sink_pb2.pyi +++ b/gen/buf/validate/conformance/cases/kitchen_sink_pb2.pyi @@ -21,7 +21,8 @@ from google.protobuf.internal import containers as _containers from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Iterable as _Iterable, Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/library_pb2.py b/gen/buf/validate/conformance/cases/library_pb2.py index dda813f8..c56e3e9b 100644 --- a/gen/buf/validate/conformance/cases/library_pb2.py +++ b/gen/buf/validate/conformance/cases/library_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/library.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/library.proto' ) diff --git a/gen/buf/validate/conformance/cases/maps_pb2.py b/gen/buf/validate/conformance/cases/maps_pb2.py index 6b0c76e0..8b459584 100644 --- a/gen/buf/validate/conformance/cases/maps_pb2.py +++ b/gen/buf/validate/conformance/cases/maps_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/maps.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/maps.proto' ) diff --git a/gen/buf/validate/conformance/cases/maps_pb2.pyi b/gen/buf/validate/conformance/cases/maps_pb2.pyi index 57fe562d..5c69543a 100644 --- a/gen/buf/validate/conformance/cases/maps_pb2.pyi +++ b/gen/buf/validate/conformance/cases/maps_pb2.pyi @@ -16,7 +16,8 @@ from buf.validate import validate_pb2 as _validate_pb2 from google.protobuf.internal import containers as _containers from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/messages_pb2.py b/gen/buf/validate/conformance/cases/messages_pb2.py index b16b68a8..d8ed573a 100644 --- a/gen/buf/validate/conformance/cases/messages_pb2.py +++ b/gen/buf/validate/conformance/cases/messages_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/messages.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/messages.proto' ) diff --git a/gen/buf/validate/conformance/cases/messages_pb2.pyi b/gen/buf/validate/conformance/cases/messages_pb2.pyi index 27b7d8fc..64deb5ed 100644 --- a/gen/buf/validate/conformance/cases/messages_pb2.pyi +++ b/gen/buf/validate/conformance/cases/messages_pb2.pyi @@ -16,7 +16,8 @@ from buf.validate.conformance.cases.other_package import embed_pb2 as _embed_pb2 from buf.validate import validate_pb2 as _validate_pb2 from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/numbers_pb2.py b/gen/buf/validate/conformance/cases/numbers_pb2.py index 8afaea86..25f5da71 100644 --- a/gen/buf/validate/conformance/cases/numbers_pb2.py +++ b/gen/buf/validate/conformance/cases/numbers_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/numbers.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/numbers.proto' ) diff --git a/gen/buf/validate/conformance/cases/oneofs_pb2.py b/gen/buf/validate/conformance/cases/oneofs_pb2.py index 1c9e08a7..a98d72ab 100644 --- a/gen/buf/validate/conformance/cases/oneofs_pb2.py +++ b/gen/buf/validate/conformance/cases/oneofs_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/oneofs.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/oneofs.proto' ) diff --git a/gen/buf/validate/conformance/cases/oneofs_pb2.pyi b/gen/buf/validate/conformance/cases/oneofs_pb2.pyi index cde307b7..0b80158b 100644 --- a/gen/buf/validate/conformance/cases/oneofs_pb2.pyi +++ b/gen/buf/validate/conformance/cases/oneofs_pb2.pyi @@ -15,7 +15,8 @@ from buf.validate import validate_pb2 as _validate_pb2 from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/other_package/embed_pb2.py b/gen/buf/validate/conformance/cases/other_package/embed_pb2.py index 80a6c843..686c3384 100644 --- a/gen/buf/validate/conformance/cases/other_package/embed_pb2.py +++ b/gen/buf/validate/conformance/cases/other_package/embed_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/other_package/embed.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/other_package/embed.proto' ) diff --git a/gen/buf/validate/conformance/cases/predefined_rules_proto2_pb2.py b/gen/buf/validate/conformance/cases/predefined_rules_proto2_pb2.py index 4b7c400f..7ca7fb12 100644 --- a/gen/buf/validate/conformance/cases/predefined_rules_proto2_pb2.py +++ b/gen/buf/validate/conformance/cases/predefined_rules_proto2_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/predefined_rules_proto2.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/predefined_rules_proto2.proto' ) diff --git a/gen/buf/validate/conformance/cases/predefined_rules_proto2_pb2.pyi b/gen/buf/validate/conformance/cases/predefined_rules_proto2_pb2.pyi index b1ca825f..20f9ffa4 100644 --- a/gen/buf/validate/conformance/cases/predefined_rules_proto2_pb2.pyi +++ b/gen/buf/validate/conformance/cases/predefined_rules_proto2_pb2.pyi @@ -20,7 +20,8 @@ from google.protobuf.internal import containers as _containers from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Iterable as _Iterable, Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor FLOAT_ABS_RANGE_PROTO2_FIELD_NUMBER: _ClassVar[int] diff --git a/gen/buf/validate/conformance/cases/predefined_rules_proto3_pb2.py b/gen/buf/validate/conformance/cases/predefined_rules_proto3_pb2.py index f863779d..729fd38f 100644 --- a/gen/buf/validate/conformance/cases/predefined_rules_proto3_pb2.py +++ b/gen/buf/validate/conformance/cases/predefined_rules_proto3_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/predefined_rules_proto3.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/predefined_rules_proto3.proto' ) diff --git a/gen/buf/validate/conformance/cases/predefined_rules_proto3_pb2.pyi b/gen/buf/validate/conformance/cases/predefined_rules_proto3_pb2.pyi index aaef8e0d..7049a3b2 100644 --- a/gen/buf/validate/conformance/cases/predefined_rules_proto3_pb2.pyi +++ b/gen/buf/validate/conformance/cases/predefined_rules_proto3_pb2.pyi @@ -22,7 +22,8 @@ from google.protobuf.internal import containers as _containers from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Iterable as _Iterable, Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/predefined_rules_proto_editions_pb2.py b/gen/buf/validate/conformance/cases/predefined_rules_proto_editions_pb2.py index fab2ae91..c12615af 100644 --- a/gen/buf/validate/conformance/cases/predefined_rules_proto_editions_pb2.py +++ b/gen/buf/validate/conformance/cases/predefined_rules_proto_editions_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/predefined_rules_proto_editions.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/predefined_rules_proto_editions.proto' ) diff --git a/gen/buf/validate/conformance/cases/predefined_rules_proto_editions_pb2.pyi b/gen/buf/validate/conformance/cases/predefined_rules_proto_editions_pb2.pyi index a84ee9c5..59255583 100644 --- a/gen/buf/validate/conformance/cases/predefined_rules_proto_editions_pb2.pyi +++ b/gen/buf/validate/conformance/cases/predefined_rules_proto_editions_pb2.pyi @@ -20,7 +20,8 @@ from google.protobuf.internal import containers as _containers from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Iterable as _Iterable, Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor FLOAT_ABS_RANGE_EDITION_2023_FIELD_NUMBER: _ClassVar[int] diff --git a/gen/buf/validate/conformance/cases/repeated_pb2.py b/gen/buf/validate/conformance/cases/repeated_pb2.py index e69162c9..36c8a5c1 100644 --- a/gen/buf/validate/conformance/cases/repeated_pb2.py +++ b/gen/buf/validate/conformance/cases/repeated_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/repeated.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/repeated.proto' ) diff --git a/gen/buf/validate/conformance/cases/repeated_pb2.pyi b/gen/buf/validate/conformance/cases/repeated_pb2.pyi index 349ee93b..f59d7e0f 100644 --- a/gen/buf/validate/conformance/cases/repeated_pb2.pyi +++ b/gen/buf/validate/conformance/cases/repeated_pb2.pyi @@ -20,7 +20,8 @@ from google.protobuf.internal import containers as _containers from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Iterable as _Iterable, Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/required_field_proto2_pb2.py b/gen/buf/validate/conformance/cases/required_field_proto2_pb2.py index 3888f3cd..bdcabc1a 100644 --- a/gen/buf/validate/conformance/cases/required_field_proto2_pb2.py +++ b/gen/buf/validate/conformance/cases/required_field_proto2_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/required_field_proto2.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/required_field_proto2.proto' ) diff --git a/gen/buf/validate/conformance/cases/required_field_proto2_pb2.pyi b/gen/buf/validate/conformance/cases/required_field_proto2_pb2.pyi index ee398420..5b0c6a76 100644 --- a/gen/buf/validate/conformance/cases/required_field_proto2_pb2.pyi +++ b/gen/buf/validate/conformance/cases/required_field_proto2_pb2.pyi @@ -16,7 +16,8 @@ from buf.validate import validate_pb2 as _validate_pb2 from google.protobuf.internal import containers as _containers from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Iterable as _Iterable, Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/required_field_proto3_pb2.py b/gen/buf/validate/conformance/cases/required_field_proto3_pb2.py index ca360a5a..f3003576 100644 --- a/gen/buf/validate/conformance/cases/required_field_proto3_pb2.py +++ b/gen/buf/validate/conformance/cases/required_field_proto3_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/required_field_proto3.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/required_field_proto3.proto' ) diff --git a/gen/buf/validate/conformance/cases/required_field_proto3_pb2.pyi b/gen/buf/validate/conformance/cases/required_field_proto3_pb2.pyi index 44e6a792..6e053867 100644 --- a/gen/buf/validate/conformance/cases/required_field_proto3_pb2.pyi +++ b/gen/buf/validate/conformance/cases/required_field_proto3_pb2.pyi @@ -16,7 +16,8 @@ from buf.validate import validate_pb2 as _validate_pb2 from google.protobuf.internal import containers as _containers from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Iterable as _Iterable, Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/required_field_proto_editions_pb2.py b/gen/buf/validate/conformance/cases/required_field_proto_editions_pb2.py index 7b33edc3..fe723bfc 100644 --- a/gen/buf/validate/conformance/cases/required_field_proto_editions_pb2.py +++ b/gen/buf/validate/conformance/cases/required_field_proto_editions_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/required_field_proto_editions.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/required_field_proto_editions.proto' ) diff --git a/gen/buf/validate/conformance/cases/required_field_proto_editions_pb2.pyi b/gen/buf/validate/conformance/cases/required_field_proto_editions_pb2.pyi index 79881986..a7b7eaee 100644 --- a/gen/buf/validate/conformance/cases/required_field_proto_editions_pb2.pyi +++ b/gen/buf/validate/conformance/cases/required_field_proto_editions_pb2.pyi @@ -16,7 +16,8 @@ from buf.validate import validate_pb2 as _validate_pb2 from google.protobuf.internal import containers as _containers from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Iterable as _Iterable, Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/strings_pb2.py b/gen/buf/validate/conformance/cases/strings_pb2.py index 4b871dff..97ae7949 100644 --- a/gen/buf/validate/conformance/cases/strings_pb2.py +++ b/gen/buf/validate/conformance/cases/strings_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/strings.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/strings.proto' ) diff --git a/gen/buf/validate/conformance/cases/subdirectory/in_subdirectory_pb2.py b/gen/buf/validate/conformance/cases/subdirectory/in_subdirectory_pb2.py index b1865305..4598b8c6 100644 --- a/gen/buf/validate/conformance/cases/subdirectory/in_subdirectory_pb2.py +++ b/gen/buf/validate/conformance/cases/subdirectory/in_subdirectory_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/subdirectory/in_subdirectory.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/subdirectory/in_subdirectory.proto' ) diff --git a/gen/buf/validate/conformance/cases/wkt_any_pb2.py b/gen/buf/validate/conformance/cases/wkt_any_pb2.py index 424cbe6f..e07b2a40 100644 --- a/gen/buf/validate/conformance/cases/wkt_any_pb2.py +++ b/gen/buf/validate/conformance/cases/wkt_any_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/wkt_any.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/wkt_any.proto' ) diff --git a/gen/buf/validate/conformance/cases/wkt_any_pb2.pyi b/gen/buf/validate/conformance/cases/wkt_any_pb2.pyi index 4b5ffe5f..a047d05c 100644 --- a/gen/buf/validate/conformance/cases/wkt_any_pb2.pyi +++ b/gen/buf/validate/conformance/cases/wkt_any_pb2.pyi @@ -16,7 +16,8 @@ from buf.validate import validate_pb2 as _validate_pb2 from google.protobuf import any_pb2 as _any_pb2 from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/wkt_duration_pb2.py b/gen/buf/validate/conformance/cases/wkt_duration_pb2.py index 9cda2b72..34928d3c 100644 --- a/gen/buf/validate/conformance/cases/wkt_duration_pb2.py +++ b/gen/buf/validate/conformance/cases/wkt_duration_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/wkt_duration.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/wkt_duration.proto' ) diff --git a/gen/buf/validate/conformance/cases/wkt_duration_pb2.pyi b/gen/buf/validate/conformance/cases/wkt_duration_pb2.pyi index b957c78f..9ba67270 100644 --- a/gen/buf/validate/conformance/cases/wkt_duration_pb2.pyi +++ b/gen/buf/validate/conformance/cases/wkt_duration_pb2.pyi @@ -16,7 +16,8 @@ from buf.validate import validate_pb2 as _validate_pb2 from google.protobuf import duration_pb2 as _duration_pb2 from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/wkt_nested_pb2.py b/gen/buf/validate/conformance/cases/wkt_nested_pb2.py index 268730fe..5841286a 100644 --- a/gen/buf/validate/conformance/cases/wkt_nested_pb2.py +++ b/gen/buf/validate/conformance/cases/wkt_nested_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/wkt_nested.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/wkt_nested.proto' ) diff --git a/gen/buf/validate/conformance/cases/wkt_nested_pb2.pyi b/gen/buf/validate/conformance/cases/wkt_nested_pb2.pyi index 96d894d9..89c06261 100644 --- a/gen/buf/validate/conformance/cases/wkt_nested_pb2.pyi +++ b/gen/buf/validate/conformance/cases/wkt_nested_pb2.pyi @@ -15,7 +15,8 @@ from buf.validate import validate_pb2 as _validate_pb2 from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/wkt_timestamp_pb2.py b/gen/buf/validate/conformance/cases/wkt_timestamp_pb2.py index 2790fb07..105280ec 100644 --- a/gen/buf/validate/conformance/cases/wkt_timestamp_pb2.py +++ b/gen/buf/validate/conformance/cases/wkt_timestamp_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/wkt_timestamp.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/wkt_timestamp.proto' ) diff --git a/gen/buf/validate/conformance/cases/wkt_timestamp_pb2.pyi b/gen/buf/validate/conformance/cases/wkt_timestamp_pb2.pyi index f7db1f81..0e0e97ab 100644 --- a/gen/buf/validate/conformance/cases/wkt_timestamp_pb2.pyi +++ b/gen/buf/validate/conformance/cases/wkt_timestamp_pb2.pyi @@ -16,7 +16,8 @@ from buf.validate import validate_pb2 as _validate_pb2 from google.protobuf import timestamp_pb2 as _timestamp_pb2 from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/wkt_wrappers_pb2.py b/gen/buf/validate/conformance/cases/wkt_wrappers_pb2.py index 3e2e7ca8..52638b95 100644 --- a/gen/buf/validate/conformance/cases/wkt_wrappers_pb2.py +++ b/gen/buf/validate/conformance/cases/wkt_wrappers_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/wkt_wrappers.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/wkt_wrappers.proto' ) diff --git a/gen/buf/validate/conformance/cases/wkt_wrappers_pb2.pyi b/gen/buf/validate/conformance/cases/wkt_wrappers_pb2.pyi index 885ed053..1c13dc07 100644 --- a/gen/buf/validate/conformance/cases/wkt_wrappers_pb2.pyi +++ b/gen/buf/validate/conformance/cases/wkt_wrappers_pb2.pyi @@ -16,7 +16,8 @@ from buf.validate import validate_pb2 as _validate_pb2 from google.protobuf import wrappers_pb2 as _wrappers_pb2 from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/cases/yet_another_package/embed2_pb2.py b/gen/buf/validate/conformance/cases/yet_another_package/embed2_pb2.py index 796712c9..b3813032 100644 --- a/gen/buf/validate/conformance/cases/yet_another_package/embed2_pb2.py +++ b/gen/buf/validate/conformance/cases/yet_another_package/embed2_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/cases/yet_another_package/embed2.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/cases/yet_another_package/embed2.proto' ) diff --git a/gen/buf/validate/conformance/harness/harness_pb2.py b/gen/buf/validate/conformance/harness/harness_pb2.py index 6d2791f5..1210a445 100644 --- a/gen/buf/validate/conformance/harness/harness_pb2.py +++ b/gen/buf/validate/conformance/harness/harness_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/harness/harness.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/harness/harness.proto' ) diff --git a/gen/buf/validate/conformance/harness/harness_pb2.pyi b/gen/buf/validate/conformance/harness/harness_pb2.pyi index 751b7a37..4226ca3f 100644 --- a/gen/buf/validate/conformance/harness/harness_pb2.pyi +++ b/gen/buf/validate/conformance/harness/harness_pb2.pyi @@ -18,7 +18,8 @@ from google.protobuf import descriptor_pb2 as _descriptor_pb2 from google.protobuf.internal import containers as _containers from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/conformance/harness/results_pb2.py b/gen/buf/validate/conformance/harness/results_pb2.py index 8147c744..1bd4714f 100644 --- a/gen/buf/validate/conformance/harness/results_pb2.py +++ b/gen/buf/validate/conformance/harness/results_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/conformance/harness/results.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/conformance/harness/results.proto' ) diff --git a/gen/buf/validate/conformance/harness/results_pb2.pyi b/gen/buf/validate/conformance/harness/results_pb2.pyi index d56a31d4..1880f033 100644 --- a/gen/buf/validate/conformance/harness/results_pb2.pyi +++ b/gen/buf/validate/conformance/harness/results_pb2.pyi @@ -18,7 +18,8 @@ from google.protobuf import descriptor_pb2 as _descriptor_pb2 from google.protobuf.internal import containers as _containers from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Iterable as _Iterable, Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/gen/buf/validate/validate_pb2.py b/gen/buf/validate/validate_pb2.py index d861355a..d3397b61 100644 --- a/gen/buf/validate/validate_pb2.py +++ b/gen/buf/validate/validate_pb2.py @@ -16,7 +16,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: buf/validate/validate.proto -# Protobuf Python Version: 5.29.3 +# Protobuf Python Version: 6.30.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -25,9 +25,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 3, + 6, + 30, + 1, '', 'buf/validate/validate.proto' ) diff --git a/gen/buf/validate/validate_pb2.pyi b/gen/buf/validate/validate_pb2.pyi index b1b17c18..46ec5ef6 100644 --- a/gen/buf/validate/validate_pb2.pyi +++ b/gen/buf/validate/validate_pb2.pyi @@ -20,7 +20,8 @@ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper from google.protobuf.internal import python_message as _python_message from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +from collections.abc import Iterable as _Iterable, Mapping as _Mapping +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/protovalidate/internal/extra_func.py b/protovalidate/internal/extra_func.py index ba8546fe..ceeb431f 100644 --- a/protovalidate/internal/extra_func.py +++ b/protovalidate/internal/extra_func.py @@ -216,7 +216,7 @@ def _is_hostname(val: str) -> bool: if (c < "a" or c > "z") and (c < "0" or c > "9") and c != "-": return False - all_digits = all_digits and c >= "0" and c <= "9" + all_digits = all_digits and "0" <= c <= "9" # the last part cannot be all numbers return not all_digits @@ -380,10 +380,7 @@ def __prefix_length(self) -> bool: start = self._index - while True: - if self._index >= len(self._string) or not self.__digit(): - break - + while self.__digit(): if self._index - start > 2: # max prefix-length is 32 bits, so anything more than 2 digits is invalid return False @@ -427,16 +424,12 @@ def __address_part(self) -> bool: return True self._index = start - return False def __dec_octet(self) -> bool: start = self._index - while True: - if self._index >= len(self._string) or not self.__digit(): - break - + while self.__digit(): if self._index - start > 3: # decimal octet can be three characters at most return False @@ -542,10 +535,7 @@ def get_bits(self) -> int: # Handle double colon, fill pieces with 0 if self._double_colon_seen: - while True: - if len(p16) >= 8: - break - + while len(p16) < 8: # Delete 0 entries at pos, insert a 0 p16.insert(self._double_colon_at, 0x00000000) @@ -572,11 +562,11 @@ def is_prefix_only(self) -> bool: bits = self.get_bits() mask: int if self._prefix_len >= 128: - mask = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF + mask = 0xFFFFFFFF_FFFFFFFF_FFFFFFFF_FFFFFFFF elif self._prefix_len < 0: - mask = 0x00000000000000000000000000000000 + mask = 0x00000000_00000000_00000000_00000000 else: - mask = ~(0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF >> self._prefix_len) + mask = ~(0xFFFFFFFF_FFFFFFFF_FFFFFFFF_FFFFFFFF >> self._prefix_len) masked = bits & mask if bits != masked: @@ -604,10 +594,7 @@ def __prefix_length(self) -> bool: """Store value in prefix_len.""" start = self._index - while True: - if self._index >= len(self._string) or not self.__digit(): - break - + while self.__digit(): if self._index - start > 3: return False @@ -639,10 +626,7 @@ def __prefix_length(self) -> bool: def __address_part(self) -> bool: """Store dotted notation for right-most 32 bits in dotted_raw / dotted_addr if found.""" - while True: - if self._index >= len(self._string): - break - + while self._index < len(self._string): # dotted notation for right-most 32 bits, e.g. 0:0:0:0:0:ffff:192.1.56.10 if (self._double_colon_seen or len(self._pieces) == 6) and self.__dotted(): dotted = Ipv4(self._dotted_raw) @@ -703,7 +687,6 @@ def __zone_id(self) -> bool: self._index = start self._zone_id_found = False - return False def __dotted(self) -> bool: @@ -719,18 +702,14 @@ def __dotted(self) -> bool: start = self._index self._dotted_raw = "" - while True: - if self._index < len(self._string) and (self.__digit() or self.__take(".")): - continue - - break + while self.__digit() or self.__take("."): + pass if self._index - start >= 7: self._dotted_raw = self._string[start : self._index] return True self._index = start - return False def __h16(self) -> bool: @@ -749,9 +728,8 @@ def __h16(self) -> bool: start = self._index - while True: - if self._index >= len(self._string) or not self.__hex_dig(): - break + while self.__hex_dig(): + pass string = self._string[start : self._index] @@ -893,7 +871,6 @@ def __hier_part(self) -> bool: return True self._index = start - return self.__path_absolute() or self.__path_rootless() or self.__path_empty() def __relative_ref(self) -> bool: @@ -938,7 +915,6 @@ def __relative_part(self) -> bool: return True self._index = start - return self.__path_absolute() or self.__path_noscheme() or self.__path_empty() def __scheme(self) -> bool: @@ -1019,18 +995,18 @@ def __userinfo(self) -> bool: """ start = self._index - while True: - if self.__unreserved() or self.__pct_encoded() or self.__sub_delims() or self.__take(":"): - continue + while self.__unreserved() or self.__pct_encoded() or self.__sub_delims() or self.__take(":"): + pass - if self._index < len(self._string): - if self._string[self._index] == "@": - return True + if self._index < len(self._string): + if self._string[self._index] == "@": + return True - self._index = start - return False + self._index = start + return False - def __check_host_pct_encoded(self, string: str) -> bool: + @staticmethod + def __check_host_pct_encoded(string: str) -> bool: """Verify that string is correctly percent-encoded.""" try: # unquote defaults to 'UTF-8' encoding. @@ -1079,15 +1055,14 @@ def __port(self) -> bool: """ start = self._index - while True: - if self.__digit(): - continue + while self.__digit(): + pass - if self.__is_authority_end(): - return True + if self.__is_authority_end(): + return True - self._index = start - return False + self._index = start + return False def __ip_literal(self) -> bool: """Determine whether the current position is a IP-literal. @@ -1207,20 +1182,18 @@ def __reg_name(self) -> bool: """ start = self._index - while True: - if self.__unreserved() or self.__pct_encoded() or self.__sub_delims(): - continue - - if self.__is_authority_end(): - # End of authority - return True + while self.__unreserved() or self.__pct_encoded() or self.__sub_delims(): + pass - if self._string[self._index] == ":": - return True + if self.__is_authority_end(): + # End of authority + return True - self._index = start + if self._string[self._index] == ":": + return True - return False + self._index = start + return False def __is_path_end(self) -> bool: """Determine whether the current index has reached the end of path. @@ -1249,7 +1222,6 @@ def __path_abempty(self) -> bool: return True self._index = start - return False def __path_absolute(self) -> bool: @@ -1273,7 +1245,6 @@ def __path_absolute(self) -> bool: return True self._index = start - return False def __path_noscheme(self) -> bool: @@ -1295,7 +1266,6 @@ def __path_noscheme(self) -> bool: return True self._index = start - return True def __path_rootless(self) -> bool: @@ -1318,7 +1288,6 @@ def __path_rootless(self) -> bool: return True self._index = start - return True def __path_empty(self) -> bool: @@ -1363,7 +1332,6 @@ def __segment_nz(self) -> bool: return True self._index = start - return False def __segment_nz_nc(self) -> bool: @@ -1384,7 +1352,6 @@ def __segment_nz_nc(self) -> bool: return True self._index = start - return False def __pchar(self) -> bool: @@ -1411,16 +1378,14 @@ def __query(self) -> bool: """ start = self._index - while True: - if self.__pchar() or self.__take("/") or self.__take("?"): - continue - - if self._index == len(self._string) or self._string[self._index] == "#": - return True + while self.__pchar() or self.__take("/") or self.__take("?"): + pass - self._index = start + if self._index == len(self._string) or self._string[self._index] == "#": + return True - return False + self._index = start + return False def __fragment(self) -> bool: """Determine whether the current position is a fragment. @@ -1434,16 +1399,14 @@ def __fragment(self) -> bool: """ start = self._index - while True: - if self.__pchar() or self.__take("/") or self.__take("?"): - continue - - if self._index == len(self._string): - return True + while self.__pchar() or self.__take("/") or self.__take("?"): + pass - self._index = start + if self._index == len(self._string): + return True - return False + self._index = start + return False def __pct_encoded(self) -> bool: """Determine whether the current position is a pct-encoded. @@ -1554,9 +1517,8 @@ def __hex_dig(self) -> bool: c = self._string[self._index] - if ("0" <= c <= "9") or ("a" <= c <= "f") or ("A" <= c <= "F") or ("0" <= c <= "9"): + if ("0" <= c <= "9") or ("a" <= c <= "f") or ("A" <= c <= "F"): self._index += 1 - return True return False