From 1bfcdf1525be17881776b8d70e37a475a9c86df1 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Thu, 27 Mar 2025 13:11:12 +0100 Subject: [PATCH] fixup! feat(python): implement session based trezorlib --- python/src/trezorlib/debuglink.py | 5 +---- python/src/trezorlib/ui.py | 5 +++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/python/src/trezorlib/debuglink.py b/python/src/trezorlib/debuglink.py index 10999977e5..da14418833 100644 --- a/python/src/trezorlib/debuglink.py +++ b/python/src/trezorlib/debuglink.py @@ -32,10 +32,7 @@ from pathlib import Path from mnemonic import Mnemonic from . import btc, mapping, messages, models, protobuf -from .client import ( - ProtocolVersion, - TrezorClient, -) +from .client import ProtocolVersion, TrezorClient from .exceptions import Cancelled, TrezorFailure, UnexpectedMessageError from .log import DUMP_BYTES from .messages import DebugWaitType diff --git a/python/src/trezorlib/ui.py b/python/src/trezorlib/ui.py index 8f278625d8..58c55bfd84 100644 --- a/python/src/trezorlib/ui.py +++ b/python/src/trezorlib/ui.py @@ -14,6 +14,8 @@ # You should have received a copy of the License along with this library. # If not, see . +from __future__ import annotations + import sys import typing as t @@ -23,8 +25,7 @@ from mnemonic import Mnemonic from . import device, messages from .client import MAX_PIN_LENGTH, PASSPHRASE_ON_DEVICE from .exceptions import Cancelled -from .messages import Capability, PinMatrixRequestType, WordRequestType -from .transport.session import Session +from .messages import PinMatrixRequestType, WordRequestType PIN_MATRIX_DESCRIPTION = """ Use the numeric keypad or lowercase letters to describe number positions.