Skip to content

Commit c1a6234

Browse files
committed
make tuple type hint explicit
1 parent 66e32f8 commit c1a6234

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

meshtastic/__main__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,8 +1122,8 @@ def subscribe() -> None:
11221122

11231123
# pub.subscribe(onNode, "meshtastic.node")
11241124

1125-
def set_missing_flags_false(config_dict: dict, true_defaults: set[tuple[str, ...]]) -> None:
1126-
"""Ensure that mission default=True keys are present in the config_dict and set to False."""
1125+
def set_missing_flags_false(config_dict: dict, true_defaults: set[tuple[str, str]]) -> None:
1126+
"""Ensure that missing default=True keys are present in the config_dict and set to False."""
11271127
for path in true_defaults:
11281128
d = config_dict
11291129
for key in path[:-1]:
@@ -1137,6 +1137,7 @@ def export_config(interface) -> str:
11371137
"""used in --export-config"""
11381138
configObj = {}
11391139

1140+
# A list of configuration keys that should be set to False if they are missing
11401141
true_defaults = {
11411142
("bluetooth", "enabled"),
11421143
("lora", "sx126xRxBoostedGain"),

0 commit comments

Comments
 (0)