unsatisfyingly fix a mypy bytes vs. bytearray issue
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
parent
2a40c70b56
commit
eb95c80815
|
@ -217,7 +217,7 @@ def get_config_from_file(filename: str, whole_board: bool = False, allow_no_file
|
|||
try:
|
||||
with open(filename, 'rb') as dump:
|
||||
if filename[-4:] == '.uf2':
|
||||
content = bytes(convert_uf2_to_binary(dump.read()))
|
||||
content = bytes(convert_uf2_to_binary(bytearray(dump.read())))
|
||||
else:
|
||||
content = dump.read()
|
||||
except FileNotFoundError:
|
||||
|
|
Loading…
Reference in New Issue