From 2dc7d39af598ea594a978bca81ba743cf20f96b2 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 20 Apr 2018 14:51:19 -0700 Subject: [PATCH] Add 'file=...' to FieldDescriptor constructor. (#2073) --- third_party/2/google/protobuf/descriptor.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/2/google/protobuf/descriptor.pyi b/third_party/2/google/protobuf/descriptor.pyi index a11c9683c..7258837e6 100644 --- a/third_party/2/google/protobuf/descriptor.pyi +++ b/third_party/2/google/protobuf/descriptor.pyi @@ -82,7 +82,7 @@ class FieldDescriptor(DescriptorBase): MAX_FIELD_NUMBER = ... # type: Any FIRST_RESERVED_FIELD_NUMBER = ... # type: Any LAST_RESERVED_FIELD_NUMBER = ... # type: Any - def __new__(cls, name, full_name, index, number, type, cpp_type, label, default_value, message_type, enum_type, containing_type, is_extension, extension_scope, options=..., has_default_value=..., containing_oneof=...): ... + def __new__(cls, name, full_name, index, number, type, cpp_type, label, default_value, message_type, enum_type, containing_type, is_extension, extension_scope, options=..., file=..., has_default_value=..., containing_oneof=...): ... name = ... # type: Any full_name = ... # type: Any index = ... # type: Any @@ -98,7 +98,7 @@ class FieldDescriptor(DescriptorBase): is_extension = ... # type: Any extension_scope = ... # type: Any containing_oneof = ... # type: Any - def __init__(self, name, full_name, index, number, type, cpp_type, label, default_value, message_type, enum_type, containing_type, is_extension, extension_scope, options=..., has_default_value=..., containing_oneof=...) -> None: ... + def __init__(self, name, full_name, index, number, type, cpp_type, label, default_value, message_type, enum_type, containing_type, is_extension, extension_scope, options=..., file=..., has_default_value=..., containing_oneof=...) -> None: ... @staticmethod def ProtoTypeToCppProtoType(proto_type): ...