Cleanup: reformat with Black

This commit is contained in:
Sybren A. Stüvel
2022-03-25 12:07:06 +01:00
parent 3daeb9f80a
commit 63c4745e9f
4 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -45,7 +45,9 @@ class EndianIO:
raise struct.error("%s (read %d bytes)" % (ex, len(data))) from None
@classmethod
def _write(cls, fileobj: typing.IO[bytes], typestruct: struct.Struct, value: typing.Any):
def _write(
cls, fileobj: typing.IO[bytes], typestruct: struct.Struct, value: typing.Any
):
try:
data = typestruct.pack(value)
except struct.error as ex:
@@ -210,7 +212,7 @@ class EndianIO:
b"uint": cls.write_uint,
b"int": cls.write_int,
b"ulong": cls.write_ulong,
b"float": cls.write_float
b"float": cls.write_float,
}