Skip to content

Commit 40a702d

Browse files
committed
chore: fix lint errors
1 parent 6933d9d commit 40a702d

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
@@ -124,9 +124,7 @@ def erase(
124124
async def f() -> None:
125125
await connect_with_spinner(smpclient)
126126

127-
r = await smp_request(
128-
smpclient, ImageErase(slot=slot), "Waiting for image erase..."
129-
)
127+
r = await smp_request(smpclient, ImageErase(slot=slot), "Waiting for image erase...")
130128

131129
if error(r):
132130
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)