Skip to content

Commit 31561dc

Browse files
committed
linter fix V3
1 parent 39d6675 commit 31561dc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pybricksdev/cli/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@ def is_pybricks_usb(dev):
240240
]
241241
while True:
242242
try:
243-
response = await hub.race_user_program_start(
243+
response = await hub.race_power_button_press(
244244
questionary.select(
245-
"Would you like to re-compile your code?",
246-
response_options,
245+
"Would you like to re-compile your code?",
246+
response_options,
247247
).ask_async()
248248
)
249249
except RuntimeError as e:
@@ -294,7 +294,7 @@ async def reconnect_hub():
294294

295295
elif (
296296
hub.connection_state_observable.value
297-
== ConnectionState.DISCONNECTED
297+
== ConnectionState.DISCONNECTED
298298
):
299299
# let terminal cool off before making a new prompt
300300
await asyncio.sleep(0.3)

pybricksdev/connections/pybricks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ async def send_block(data: bytes) -> None:
678678
if wait:
679679
await self._wait_for_user_program_stop()
680680

681-
async def race_user_program_start(self, awaitable: Awaitable[T]) -> T:
681+
async def race_power_button_press(self, awaitable: Awaitable[T]) -> T:
682682
"""
683683
Races an awaitable against the user pressing the power button of the hub.
684684
@@ -749,7 +749,7 @@ async def _wait_for_user_program_stop(self, program_start_timeout=1):
749749
try:
750750
await asyncio.wait_for(
751751
self.race_disconnect(user_program_running.get()),
752-
program_start_timeout
752+
program_start_timeout,
753753
)
754754
except asyncio.TimeoutError:
755755
# if it doesn't start, assume it was a very short lived

0 commit comments

Comments
 (0)