From cd9199bc003a04d8ac66059ac3d4441094fce3bc Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Mon, 2 Mar 2026 09:34:36 -0700 Subject: [PATCH] Apply suggestion from @ianmcorvidae --- meshtastic/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meshtastic/__main__.py b/meshtastic/__main__.py index cd82ac4..7de0207 100644 --- a/meshtastic/__main__.py +++ b/meshtastic/__main__.py @@ -1132,7 +1132,9 @@ def subscribe() -> None: # pub.subscribe(onNode, "meshtastic.node") def _is_repeated_field(field_desc) -> bool: - """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.""" + """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. + """ if hasattr(field_desc, "is_repeated"): return bool(field_desc.is_repeated) return field_desc.label == field_desc.LABEL_REPEATED