Skip to content

Commit e98213b

Browse files
committed
firmware: don't use Python 3.10 features
Follows 4060d1f.
1 parent 4060d1f commit e98213b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pybricksdev/firmware.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ class FirmwareMetadataV100(
1414
{
1515
"metadata-version": Literal["1.0.0"],
1616
"firmware-version": str,
17-
"device-id": Literal[0x40] | Literal[0x41] | Literal[0x80] | Literal[0x81],
18-
"checksum-type": Literal["sum"] | Literal["crc32"],
17+
"device-id": Union[
18+
Literal[0x40], Literal[0x41], Literal[0x80], Literal[0x81]
19+
],
20+
"checksum-type": Union[Literal["sum"], Literal["crc32"]],
1921
"mpy-abi-version": int,
2022
"mpy-cross-options": list[str],
2123
"user-mpy-offset": int,

0 commit comments

Comments
 (0)