Skip to content

Commit add4e85

Browse files
Add is_required / is_repeated properties to FieldDescriptor (#14703)
1 parent a56f819 commit add4e85

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stubs/protobuf/google/protobuf/descriptor.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ class FieldDescriptor(DescriptorBase):
156156
@property
157157
def label(self): ...
158158
@property
159+
def is_required(self) -> bool: ...
160+
@property
161+
def is_repeated(self) -> bool: ...
162+
@property
159163
def camelcase_name(self) -> str: ...
160164
@property
161165
def has_presence(self) -> bool: ...

0 commit comments

Comments
 (0)