Skip to content

Commit

Permalink
Merge pull request datalad#547 from datalad/bf-iter-subproc
Browse files Browse the repository at this point in the history
fix small issues in `iter_subproc`
  • Loading branch information
mih authored Nov 27, 2023
2 parents d9da16d + 9b3f3e8 commit 54f8abe
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions datalad_next/runners/iter_subproc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from __future__ import annotations
from typing import List
from typing import (
Iterable,
List,
)

from datalad_next.iterable_subprocess.iterable_subprocess \
import iterable_subprocess
Expand All @@ -11,7 +14,7 @@
def iter_subproc(
args: List[str],
*,
input: List[bytes] | None = None,
input: Iterable[bytes] | None = None,
chunk_size: int = COPY_BUFSIZE,
):
"""Context manager to communicate with a subprocess using iterables
Expand Down Expand Up @@ -53,5 +56,5 @@ def iter_subproc(
return iterable_subprocess(
args,
tuple() if input is None else input,
chunk_size=COPY_BUFSIZE,
chunk_size=chunk_size,
)

0 comments on commit 54f8abe

Please sign in to comment.