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:
parent
88ea30b746
commit
f2f3d39cf1
10
tools/pb2py
10
tools/pb2py
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user