Skip to content

Commit 1caaeb5

Browse files
committed
flash: simplify typing usage
1 parent 63a8752 commit 1caaeb5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pybricksdev/flash.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
import platform
1010
import struct
1111
import sys
12-
import typing
1312
import zipfile
1413
from collections import namedtuple
15-
from typing import Dict, Tuple
14+
from typing import BinaryIO, Dict, Tuple, Union
1615

1716
from tqdm.auto import tqdm
1817
from tqdm.contrib.logging import logging_redirect_tqdm
@@ -27,7 +26,7 @@
2726

2827

2928
async def create_firmware(
30-
firmware_zip: typing.Union[str, os.PathLike, typing.BinaryIO]
29+
firmware_zip: Union[str, os.PathLike, BinaryIO]
3130
) -> Tuple[bytes, dict]:
3231
"""Creates a firmware blob from base firmware and main.mpy file.
3332

0 commit comments

Comments
 (0)