File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 88import contextlib
99import logging
1010import os
11- import questionary
1211import sys
1312from abc import ABC , abstractmethod
1413from os import PathLike , path
1514from tempfile import NamedTemporaryFile
1615from typing import ContextManager , TextIO
1716
1817import argcomplete
18+ import questionary
1919from argcomplete .completers import FilesCompleter
2020
2121from pybricksdev import __name__ as MODULE_NAME
@@ -232,8 +232,7 @@ def is_pybricks_usb(dev):
232232 break
233233
234234 resend = await questionary .select (
235- "Would you like to resend your code?" ,
236- choices = ["Resend" , "Exit" ]
235+ "Would you like to resend your code?" , choices = ["Resend" , "Exit" ]
237236 ).ask_async ()
238237
239238 if resend == "Exit" :
@@ -245,7 +244,9 @@ def is_pybricks_usb(dev):
245244 finally :
246245 await hub .disconnect ()
247246
247+
248248class Flash (Tool ):
249+
249250 def add_parser (self , subparsers : argparse ._SubParsersAction ):
250251 parser = subparsers .add_parser (
251252 "flash" , help = "flash firmware on a LEGO Powered Up device"
You can’t perform that action at this time.
0 commit comments