1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00

wip trezorlib fix style

This commit is contained in:
M1nd3r 2024-09-13 12:05:27 +02:00
parent 28f25b6130
commit a7f386f3a9
2 changed files with 4 additions and 5 deletions

View File

@ -20,12 +20,12 @@ from contextlib import contextmanager
from typing import TYPE_CHECKING, Any, Callable, Dict, Optional
import click
from ..transport.new.client import NewTrezorClient
from ..transport.new import channel_database
from ..transport.new.transport import NewTransport
from .. import exceptions, transport
from ..client import TrezorClient
from ..transport.new import channel_database
from ..transport.new.client import NewTrezorClient
from ..transport.new.transport import NewTransport
from ..ui import ClickUI, ScriptUI
if TYPE_CHECKING:
@ -237,7 +237,6 @@ def new_with_client(
# client.end_session()
# except Exception:
# pass
pass
# the return type of @click.pass_obj is improperly specified and pyright doesn't
# understand that it converts f(obj, *args, **kwargs) to f(*args, **kwargs)

View File

@ -46,13 +46,13 @@ from . import (
firmware,
monero,
nem,
new_with_client,
ripple,
settings,
solana,
stellar,
tezos,
with_client,
new_with_client,
)
F = TypeVar("F", bound=Callable)