1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 23:48:12 +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

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