Skip to content

Commit cd9199b

Browse files
authored
Apply suggestion from @ianmcorvidae
1 parent 04a23ae commit cd9199b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

meshtastic/__main__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,9 @@ def subscribe() -> None:
11321132
# pub.subscribe(onNode, "meshtastic.node")
11331133

11341134
def _is_repeated_field(field_desc) -> bool:
1135-
"""Return True if the protobuf field is repeated. Protobuf 6.31.0 and later use an is_repeated property, while older versions compare against the label field."""
1135+
"""Return True if the protobuf field is repeated.
1136+
Protobuf 6.31.0 and later use an is_repeated property, while older versions compare against the label field.
1137+
"""
11361138
if hasattr(field_desc, "is_repeated"):
11371139
return bool(field_desc.is_repeated)
11381140
return field_desc.label == field_desc.LABEL_REPEATED

0 commit comments

Comments
 (0)