Skip to content

Commit b51c856

Browse files
committed
refactor: replace typing.IO[bytes] with io.BinaryIO
1 parent f68dab2 commit b51c856

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugin/commands/auto_set_syntax_download_dependencies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import urllib.request
99
import zipfile
1010
from pathlib import Path
11-
from typing import IO, override
11+
from typing import BinaryIO, override
1212

1313
import sublime
1414
import sublime_plugin
@@ -70,7 +70,7 @@ def _prepare_dependencies() -> None:
7070
)
7171

7272

73-
def decompress_buffer(buffer: IO[bytes], *, filename: str, dst_dir: PathLike) -> bool:
73+
def decompress_buffer(buffer: BinaryIO, *, filename: str, dst_dir: PathLike) -> bool:
7474
"""
7575
Decompress the tarball in the bytes IO object.
7676

0 commit comments

Comments
 (0)