1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

fix style

This commit is contained in:
Pavol Rusnak 2018-05-24 16:04:18 +02:00
parent 88ea30b746
commit f2f3d39cf1
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 17 additions and 17 deletions

View File

@ -10,10 +10,10 @@ from .helpers import get_vote_tx_text
async def require_confirm_tx(ctx, to, value):
content = Text('Confirm sending', ui.ICON_SEND,
ui.BOLD, format_amount(value),
ui.NORMAL, 'to',
ui.MONO, *split_address(to),
icon_color=ui.GREEN)
ui.BOLD, format_amount(value),
ui.NORMAL, 'to',
ui.MONO, *split_address(to),
icon_color=ui.GREEN)
return await require_confirm(ctx, content, ButtonRequestType.SignTx)
@ -21,15 +21,15 @@ async def require_confirm_delegate_registration(ctx, delegate_name):
content = Text('Confirm transaction', ui.ICON_SEND,
'Do you really want to',
'register a delegate?',
ui.BOLD, *chunks(delegate_name, 20),
icon_color=ui.GREEN)
ui.BOLD, *chunks(delegate_name, 20),
icon_color=ui.GREEN)
return await require_confirm(ctx, content, ButtonRequestType.SignTx)
async def require_confirm_vote_tx(ctx, votes):
content = Text('Confirm transaction', ui.ICON_SEND,
*get_vote_tx_text(votes),
icon_color=ui.GREEN)
*get_vote_tx_text(votes),
icon_color=ui.GREEN)
return await require_confirm(ctx, content, ButtonRequestType.SignTx)
@ -39,10 +39,10 @@ async def require_confirm_public_key(ctx, public_key):
async def require_confirm_multisig(ctx, multisignature):
content = Text('Confirm transaction', ui.ICON_SEND,
('Keys group length: %s' % len(multisignature.keys_group)),
('Life time: %s' % multisignature.life_time),
('Min: %s' % multisignature.min),
icon_color=ui.GREEN)
('Keys group length: %s' % len(multisignature.keys_group)),
('Life time: %s' % multisignature.life_time),
('Min: %s' % multisignature.min),
icon_color=ui.GREEN)
return await require_confirm(ctx, content, ButtonRequestType.SignTx)

View File

@ -74,13 +74,13 @@ def process_message_imports(descriptor):
def create_init_method(fields):
yield " def __init__("
yield " self,"
yield " def __init__(" # noqa: E271
yield " self," # noqa: E271
for field in fields[:-1]:
yield " %s: %s = None," % (field.name, field.py_type)
yield " %s: %s = None," % (field.name, field.py_type) # noqa: E271
# last field must not have a traling comma
yield " %s: %s = None" % (fields[-1].name, fields[-1].py_type)
yield " ) -> None:"
yield " %s: %s = None" % (fields[-1].name, fields[-1].py_type) # noqa: E271
yield " ) -> None:" # noqa: E271
for field in fields:
if field.repeated: