From 96020a4953e5fb7da324f539712c86a20459e47c Mon Sep 17 00:00:00 2001 From: Peter Jensen Date: Tue, 21 Mar 2017 13:15:04 +0100 Subject: [PATCH] micro fix --- src/apps/common/request_pin.py | 2 +- src/trezor/ui/confirm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/common/request_pin.py b/src/apps/common/request_pin.py index 00a2877028..70e9f0b1c4 100644 --- a/src/apps/common/request_pin.py +++ b/src/apps/common/request_pin.py @@ -107,7 +107,7 @@ def _render_pin_failure(sleep_ms: int): ui.BOLD, ui.RED, ui.BLACK) -def _get_code_and_label(code: int) -> str: +def _get_code_and_label(code: int): from trezor.messages import PinMatrixRequestType if code is None: code = PinMatrixRequestType.Current diff --git a/src/trezor/ui/confirm.py b/src/trezor/ui/confirm.py index 49cebabbb7..a44bc44d39 100644 --- a/src/trezor/ui/confirm.py +++ b/src/trezor/ui/confirm.py @@ -36,7 +36,7 @@ class ConfirmDialog(Widget): yield loop.Wait((super().__iter__(), self.content)) -class HoldToConfirmDialog(): +class HoldToConfirmDialog(Widget): def __init__(self, content=None, hold='Hold to confirm', *args, **kwargs): self.button = Button((0, 240 - 48, 240, 48), hold,