We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4060d1f commit e98213bCopy full SHA for e98213b
pybricksdev/firmware.py
@@ -14,8 +14,10 @@ class FirmwareMetadataV100(
14
{
15
"metadata-version": Literal["1.0.0"],
16
"firmware-version": str,
17
- "device-id": Literal[0x40] | Literal[0x41] | Literal[0x80] | Literal[0x81],
18
- "checksum-type": Literal["sum"] | Literal["crc32"],
+ "device-id": Union[
+ Literal[0x40], Literal[0x41], Literal[0x80], Literal[0x81]
19
+ ],
20
+ "checksum-type": Union[Literal["sum"], Literal["crc32"]],
21
"mpy-abi-version": int,
22
"mpy-cross-options": list[str],
23
"user-mpy-offset": int,
0 commit comments