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 63a8752 commit 1caaeb5Copy full SHA for 1caaeb5
pybricksdev/flash.py
@@ -9,10 +9,9 @@
9
import platform
10
import struct
11
import sys
12
-import typing
13
import zipfile
14
from collections import namedtuple
15
-from typing import Dict, Tuple
+from typing import BinaryIO, Dict, Tuple, Union
16
17
from tqdm.auto import tqdm
18
from tqdm.contrib.logging import logging_redirect_tqdm
@@ -27,7 +26,7 @@
27
26
28
29
async def create_firmware(
30
- firmware_zip: typing.Union[str, os.PathLike, typing.BinaryIO]
+ firmware_zip: Union[str, os.PathLike, BinaryIO]
31
) -> Tuple[bytes, dict]:
32
"""Creates a firmware blob from base firmware and main.mpy file.
33
0 commit comments