Skip to content

Commit d4e15b3

Browse files
committed
fix
1 parent b633192 commit d4e15b3

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/subprocess_tee/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import subprocess # noqa: S404
1212
import sys
1313
from asyncio import StreamReader
14-
from collections.abc import Sequence
1514
from importlib.metadata import PackageNotFoundError, version
1615
from pathlib import Path
1716
from shlex import join
@@ -26,7 +25,7 @@
2625
_logger = logging.getLogger(__name__)
2726

2827
if TYPE_CHECKING:
29-
from collections.abc import Callable
28+
from collections.abc import Callable, Sequence
3029

3130
from subprocess_tee._types import StrOrBytesPath
3231
CompletedProcess = subprocess.CompletedProcess

src/subprocess_tee/_types.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
"""Internally used types."""
22

3-
# Source from https://github.com/python/typing/issues/256#issuecomment-1442633430
43
from os import PathLike
5-
from typing import TypeVar, Union
6-
7-
_T_co = TypeVar("_T_co", covariant=True)
4+
from typing import Union
85

96
StrOrBytesPath = Union[str, bytes, PathLike[str], PathLike[bytes]]

0 commit comments

Comments
 (0)