Skip to content

Commit c306eea

Browse files
committed
chore: fix lint errors
1 parent 97ce25e commit c306eea

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

smpmgr/common.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ def get_custom_smpclient(options: Options, smp_client_cls: Type[TSMPClient]) ->
6969
elif options.transport.ip is not None:
7070
logger.info(f"Initializing SMPClient with the SMPUDPTransport, {options.transport.ip=}")
7171
if options.mtu is not None:
72-
return smp_client_cls(SMPUDPTransport(mtu=options.mtu), options.transport.ip, options.timeout)
72+
return smp_client_cls(
73+
SMPUDPTransport(mtu=options.mtu), options.transport.ip, options.timeout
74+
)
7375
else:
7476
return smp_client_cls(SMPUDPTransport(), options.transport.ip, options.timeout)
7577
else:

smpmgr/image_management.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ def erase(
103103
async def f() -> None:
104104
await connect_with_spinner(smpclient)
105105

106-
r = await smp_request(
107-
smpclient, ImageErase(slot=slot), "Waiting for image erase..."
108-
)
106+
r = await smp_request(smpclient, ImageErase(slot=slot), "Waiting for image erase...")
109107

110108
if error(r):
111109
print(r)

smpmgr/shell_management.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ def shell(
1717
command: str = typer.Argument(
1818
help="Command string to run, e.g. \"gpio conf gpio@49000000 0 i\""
1919
),
20-
timeout: float | None = typer.Option(None, help="Timeout in seconds for the command to complete"),
20+
timeout: float
21+
| None = typer.Option(None, help="Timeout in seconds for the command to complete"),
2122
verbose: A[
2223
bool, typer.Option("--verbose", help="Print the raw success response") # noqa: F821,F722
2324
] = False,

0 commit comments

Comments
 (0)