Skip to content

Commit e0f670b

Browse files
linter hints
1 parent 906a645 commit e0f670b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/mid_level/example_mid_level_update.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ def input_callback(input_value: str) -> bool:
3232
if input_value == "q":
3333
# end keyboard input thread
3434
return True
35-
elif input_value >= '1' and input_value <= '8':
35+
if "1" <= input_value <= "8":
3636
index = int(input_value) - 1
37-
if index >= 0 and index < len(channel_config):
37+
if 0 <= index < len(channel_config):
3838
cc = channel_config[index]
3939
if cc is not None:
4040
cc.is_active = not cc.is_active
@@ -45,7 +45,7 @@ def input_callback(input_value: str) -> bool:
4545
print("Invalid channel config index")
4646

4747
return False
48-
48+
4949

5050
print("Invalid command")
5151
return False

0 commit comments

Comments
 (0)