use pyupgrade to update syntax (#1889)

This commit is contained in:
Cameron Clough
2024-02-24 21:56:28 +00:00
committed by GitHub
parent 96a3099398
commit 0c7d5f11d7
29 changed files with 122 additions and 130 deletions

View File

@@ -1,6 +1,6 @@
import os
import enum
from typing import List, NamedTuple
from typing import NamedTuple
BASEDIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../")
FW_PATH = os.path.join(BASEDIR, "board/obj/")
@@ -10,7 +10,7 @@ USBPACKET_MAX_SIZE = 0x40
class McuConfig(NamedTuple):
mcu: str
mcu_idcode: int
sector_sizes: List[int]
sector_sizes: list[int]
sector_count: int # total sector count, used for MCU identification in DFU mode
uid_address: int
block_size: int