fix style

This commit is contained in:
Jan Pochyla 2017-10-03 11:43:56 +02:00
parent 128bb83e1b
commit e923b885af
4 changed files with 11 additions and 5 deletions

View File

@ -9,4 +9,8 @@ ignore =
# E402: module level import not at top of file
E402,
# E501: line too long
E501
E501,
# F403: star import used, unable to detect undefined names
F403,
# F405: name may be undefined, or defined from star imports
F405

View File

@ -8,6 +8,7 @@ if __debug__:
DEFAULT_CANCEL = res.load(ui.ICON_CLEAR)
DEFAULT_LOCK = res.load(ui.ICON_LOCK)
@unimport
async def request_pin_on_display(ctx: wire.Context, code: int=None) -> str:
from trezor.messages.ButtonRequest import ButtonRequest

View File

@ -10,6 +10,7 @@ CANCELLED = const(2)
DEFAULT_CONFIRM = res.load(ui.ICON_CONFIRM)
DEFAULT_CANCEL = res.load(ui.ICON_CLEAR)
class ConfirmDialog(Widget):
def __init__(self, content, confirm=DEFAULT_CONFIRM, cancel=DEFAULT_CANCEL):