Skip to content

Commit fcb5347

Browse files
committed
fix
1 parent b633192 commit fcb5347

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

.config/dictionary.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ codespell
55
commitlint
66
devel
77
dists
8+
fspath
89
instafail
910
mkdocstrings
1011
nosetests

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ repos:
8080
- id: mypy
8181
# empty args needed in order to match mypy cli behavior
8282
args: []
83+
files: ^(src|test)/
8384
additional_dependencies:
8485
- pytest>=6.1.2
8586
- enrich>=1.2.5

src/subprocess_tee/__init__.py

Lines changed: 2 additions & 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
@@ -43,6 +42,7 @@ async def _read_stream(stream: StreamReader, callback: Callable[..., Any]) -> No
4342
break
4443

4544

45+
# pylint: disable=too-many-arguments, too-many-locals
4646
async def _stream_subprocess( # noqa: C901
4747
args: StrOrBytesPath | Sequence[StrOrBytesPath],
4848
*,

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)