From cc458d4bc4a17b87acaac43f007a07aa13892ea0 Mon Sep 17 00:00:00 2001 From: Stephen Thorne Date: Tue, 17 Dec 2024 14:17:55 -0800 Subject: [PATCH] Internal change PiperOrigin-RevId: 707248416 --- python/google/protobuf/descriptor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/google/protobuf/descriptor.py b/python/google/protobuf/descriptor.py index d8c6a4352b112..d6abf4ba3dd4e 100755 --- a/python/google/protobuf/descriptor.py +++ b/python/google/protobuf/descriptor.py @@ -1043,7 +1043,7 @@ def __init__(self, name, full_name, index, methods, options=None, None, serialized_start=serialized_start, serialized_end=serialized_end, serialized_options=serialized_options) self.index = index - self.methods = methods + self.methods: list[MethodDescriptor] = methods self.methods_by_name = dict((m.name, m) for m in methods) # Set the containing service for each method in this service. for method in self.methods: