unsatisfyingly fix a mypy bytes vs. bytearray issue

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
Brian S. Stephan 2024-04-12 18:12:04 -05:00
parent 2a40c70b56
commit eb95c80815
Signed by: bss
GPG Key ID: 3DE06D3180895FCB
1 changed files with 1 additions and 1 deletions

View File

@ -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: